camerakit-ios icon indicating copy to clipboard operation
camerakit-ios copied to clipboard

Rotation issues for video preview

Open TheGeekPharaoh opened this issue 5 years ago • 3 comments

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:
  • Photos preview fine, and are captured as expected
  • Video previews are rotated 90 degrees, are captured rotated 90 degrees
  1. App starts in landscape orientation but is then rotated to portrait orientation
  • Photos and videos preview fine and are captured as expected
  1. App starts in landscape orientation, is rotated to portrait orientation, then rotated BACK to landscape orientation
  • Photos and videos preview fine and are captured as expected
  1. App starts in portrait orientation:
  • Photos and videos preview fine and are captured as expected

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.

TheGeekPharaoh avatar Mar 05 '19 19:03 TheGeekPharaoh

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!

austinkettner avatar Mar 05 '19 19:03 austinkettner

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

any solution for this video issue?

rlogical-techsoft avatar Jul 21 '21 11:07 rlogical-techsoft

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

rlogical-techsoft avatar Jul 21 '21 14:07 rlogical-techsoft