in my app i have selected only the portrait mode in the project setting:
and i use it in this way:
player = [[MPMoviePlayerController alloc] init];
[player setContentURL:videoURL];
[player play];
but when i display a video using MPMoviePlayerController
in full screen and i try to rotate it, doens't rotate, and stay in portrait
, there is a simple way without enable the landscape
mode in the project setting, to active the landscape
in fullscreen?
You have 2 options:
supportedInterfaceOrientations
for your view controllers.application:supportedInterfaceOrientationsForWindow:
method and, when playing a movie, make sure that this returnsUIInterfaceOrientationMaskAllButUpsideDown
.