I have an app whose rotation configuration is defined dynamically, therefore I cannot set the supported rotations in the project file.
Therefore I have to handle the new shouldRotate methods (thanks Apple!!)
But despite having overriden these and prevented the full UI from displaying in anything but portrait. When a video view is displayed fullscreen and rotated. The video will rotate to landscape still.
Is there another way to preview the video specifically from rotating at all?
Here's an implementation using a
MPMoviePlayerViewController
subclass supporting portrait and portrait upside down (but you can easily change the mask). This works in iOS 6 as you suggested, prior versions have different rotation selectors.Usage:
In MovieViewController.h:
In MovieViewController.m:
Result (note rotation is enabled on the project for all rotations..):