Search code examples
iosobjective-cmpmovieplayercontrollerbackmpmovieplayer

Quit MPMoviePlayer on entering background in iOS Objective-C


MPMoviePlayer is presented on RootViewController.On entering background, I have popped the MPMoviePlayerController.
But on entering foreground,the movie player screen is splashed for a second and then disappears.

What I need is not to show the movie player view on entering foreground. Is there any way to achieve this ?


Solution

  • It's because the system takes a snapshot of the application’s main window when an application moves on to the background, which is presented when you enter foreground.

    Hope this will help you to understand things better.

    Prevent iOS from taking screen capture of app before going into background

    The exact moment iOS takes the view snapshot when entering background?