Search code examples
iphoneiosios5mpmovieplayer

MPMoviePlayer is not rotating


In my application i have a UIWebview where I am showing a list of Video Link . Clicking on one of those links, MPMoviePlayer launches itself. But in the full screen mode its not rotating when needed.

How to rotate it now as I have no control for it in webview.


Solution

  • if you are using IOS 6 use - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {} because shouldautorotate is not any more available for ios 6.