我正在使用MPMoviePlayerController在遠程URL上播放視頻。當我重複使用播放器播放多個視頻並且url不指向視頻時,控制器不會發回任何通知。我試過了MPMoviePlayerPlaybackDidFinishNotification,MPMoviePlayerPlaybackStateDidChangeNotification和MPMoviePlayerLoadStateDidChangeNotification。他們都沒有被派出。如何使用MPMoviePlayerController處理無效的URL
我也嘗試做一個自定義超時函數,並調用下面的播放器的停止函數。但是,沒有任何反應。 MPMoviePlayerController似乎在那裏無所事事。
[self performSelector:@selector(checkTimeout) withObject:theMovie afterDelay:15];
-(void) checkTimeout {
[self.moviePlayer stop];
}
有誰知道如何處理無效網址的MPMoviePlayerController?
顯示一些附加代碼 –