How To Rotate An MPMoviePlayerController

Posted by Dwaine Bailey on Stack Overflow See other posts from Stack Overflow or by Dwaine Bailey
Published on 2010-06-10T23:14:13Z Indexed on 2010/06/11 0:13 UTC
Read the original article Hit count: 1157

I am building an iPhone app that plays videos on demand from a web service.

The videos play in an MPMoviePlayerController, and everything works fine on the iPhone device.

However, when one loads up the iPhone application on an iPad, the videos play Portrait mode (with letterboxing on the top and bottom), instead of Landscape Left like they do on the iPhone.

At first the videos were not appearing at all, however I fixed this by adding the MPMoviePlayerControllers view to the view that is creating it, as a subview, and then set it to play fullscreen.

--

Edit To Original:

I now have it playing on the iPad in all rotations. Is there any way to stop it rotating, and just have it play LandscapeLeft?

Thanks, Dwaine

© Stack Overflow or respective owner

Related posts about iphone

Related posts about ipad