You can use CoreMotion
to detect the current interface orientation, and the only change interface orientation if your video is playing.
Try checking out the CMMotionManager
class.
Alternatively, try checking out preferredInterfaceOrientationForPresentation
on your UIViewController
.