I have a simple view with a button. When clicked it pops up movie player (Using the MoviePlayer.framework). I want to programmatically click the Done button or some how exit the movie player and return to previous view.
I can get a handle to movie player’s window but do not know how to end it. Please help me out with any pointers or tutorials.
Lalith
AHH, finally, i can help with something here:
Ok, at first, when you create the player, you can assign yourself as an observer to MPMoviePlaybackDidFinishNotification. That means, when the “done” button or the movie is done playing, this notification is called out.
So you now have to assign a method to be called by the notification center.
Then all you need is to create the moviePlayBackDidFinish method and close the player from there. If you need more code, let us know.