The app I am working on using MPMoviePlayerController to play video at remote urls. When I reuse the player to play more than one video and the url doesn't point to a video, the controller doesn't send any notification back. I've tried MPMoviePlayerPlaybackDidFinishNotification, MPMoviePlayerPlaybackStateDidChangeNotification and MPMoviePlayerLoadStateDidChangeNotification. None of them was sent.
I also tried to do a custom time out function and calls the player's stop function like below. But, nothing happens. MPMoviePlayerController just seems dead there and doing nothing.
[self performSelector:@selector(checkTimeout) withObject:theMovie afterDelay:15];
-(void) checkTimeout {
[self.moviePlayer stop];
}
Does anyone know how to handle invalid url with MPMoviePlayerController?