I have an MPMoviePlayerViewController that plays a movie in my app.
Multitasking is enabled so that I can return to the home screen or lock the device and then use t
This works for me. Load a false url when video player done button pressed. For Example
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(moviePlaybackComplete:)
name:MPMoviePlayerPlaybackDidFinishNotification
object:yourViewController];
and implement
- (void)moviePlaybackComplete:(NSNotification *)notification
{
self.playerViewController=[self.playerViewController initWithContentURL:[NSURL URLWithString:@"dummyUrl"]];
[self.playerViewController.moviePlayer stop];
MPMoviePlayerViewController *moviePlayerController = [notification object];
[[NSNotificationCenter defaultCenter] removeObserver:self
name:MPMoviePlayerPlaybackDidFinishNotification
object:moviePlayerController];
}
This works just fine. Thanks