3

I want to play a video with AVPlayerViewController() from Apple's AVKit framework. well, the video plays nicely, auto rotate works well and rotate smoothly. But, is it possible to autorotate that (so it could rotate to landscape or rotate to portrait, not just one of it) even if the device turned on "Lock Portrait Orientation" ?

What i mean for "Lock Portrait Orientation" is the one from device's Control Center like this : Lock Portrait Orientation

  • 1
    Possible duplicate of [AVCaptureVideoPreviewLayer orientation - need landscape](https://stackoverflow.com/questions/15075300/avcapturevideopreviewlayer-orientation-need-landscape) – Jaydeep Vora Feb 28 '18 at 09:11
  • 1
    I already open that link and its purpose is force the player to play landscape. What i look for is it's still flexible to change the orientation either landscape or portrait while turning on "Lock Portrait Orientation". – Yoga Widyakrisna Feb 28 '18 at 09:41
  • 1
    did you find any solution for this ? – CodeChanger Jul 18 '18 at 10:03

0 Answers0