CameraKit / camerakit-ios

Library for iOS Camera API. Massively increase performance and ease of use within your next iOS Project.
Apache License 2.0
686 stars 82 forks source link

Rotation issues for video preview #17

Open TheGeekPharaoh opened 5 years ago

TheGeekPharaoh commented 5 years ago

I'm noticing the following behaviors when running the demo app. I'm not sure if they are just issues in the demo app itself, or if the issue lies within the core library. (I'm still digging in.) Regardless, here's what I've found on an iPad Pro 9.7 inch, running iOS 12.1.4:

1) App starts in landscape orientation:

2) App starts in landscape orientation but is then rotated to portrait orientation

3) App starts in landscape orientation, is rotated to portrait orientation, then rotated BACK to landscape orientation

4) App starts in portrait orientation:

So, it appears as though the issue I'm seeing only occurs when starting the app in landscape orientation. If I rotate the device to portrait and then rotate it back to landscape, everything works fine. If I start in portrait orientation everything works fine. I only see the video preview and the subsequent recorded video rotated incorrectly if I start in landscape and stay in landscape.

austinkettner commented 5 years ago

Thanks for the detailed ticket @sdnakhla super helpful! I just added this to our 1.2.1 milestone and we will make sure to get this resolved. If you do more digging and find out more info definitely keep us updated in this ticket!

rlogical-techsoft commented 3 years ago

Video previews are rotated 90 degrees, are captured rotated 90 degrees

any solution for this video issue?

rlogical-techsoft commented 3 years ago

solution as we found in video view self.previewView.autorotate = false