KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to show an UIAlert if the Video-Play fails. So i registered the MPMoviePlayerPlaybackDidFinishNotification for my Movie Player: [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(myMovieFinishedCallback:) name:MPMoviePlayerPlaybackDidFinishNotification object:self.moviePlayer]; In my myMovieFinishedCallback: I check if in the User Info Dictionary is a Object named error . On my real device I don't get this error (on no network error, 404 error for file). On the iPhone Simulator I receive the error. How can I properly check the reasoning when I receive the MPMoviePlayerPlaybackDidFinishNotification ?
Tags (comma-separated)
Save Edits
Cancel