SirRupertIII
SirRupertIII

Reputation: 12596

Call MPMoviePlayerViewController done button. iPad

When the user gets out of the app or changes apps while a MPMoviePlayerViewController is being displayed, then they get back in to the app the MPMoviePlayerViewController is still there for about a half of a second. I want to either keep the MPMoviePlayerViewController up, or have it out of the way before the user can see it when they re-open the app, or just dismiss the MPMoviePlayerViewController right before the user gets out of the app. Right now I plan to dismiss the MPMoviePlayerViewController in my AppDelegate just before the user leaves the app.

So I want to know if it is possible to call the done button on the MPMoviePlayerViewController, and I want to do this from my AppDelegate

Upvotes: 0

Views: 3174

Answers (1)

Vishal
Vishal

Reputation: 8256

Try to call MPMoviePlayerWillExitFullscreenNotification NSNotificationCenter. Below is good

discussion on this topic may it helps you:

Done button event MPMoviePlayerController

Upvotes: 1

Related Questions