Search code examples
iosmpmovieplayercontroller

MPMoviePlayerViewController dismisses on screen-lock


After calling -

[self.navigationController presentMoviePlayerViewControllerAnimated:movieViewController];

The view dismisses itself after screen lock or backgrounding. Is there anyway to prevent this?


Solution

  • It appears that locking the screen causes MPMoviePlayerController to stop, which causes MPMoviePlayerViewController to dismiss.

    I ended up rolling my own custom UIViewController with MPMoviePlayerController taking up the entire view with full screen controls.