我无法播放视频,因为我收到此通知错误:
- (void)playbackFinished:(NSNotification*)notification {
NSNumber* reason = [[notification userInfo] objectForKey:MPMoviePlayerPlaybackDidFinishReasonUserInfoKey];
switch ([reason intValue]) {
case MPMovieFinishReasonPlaybackError:{
**NSLog(@"playbackFinished. Reason: Playback Error");**
[UIView animateWithDuration:1.0f
delay:0
options:UIViewAnimationOptionCurveEaseIn
animations:^{
[m_player.view setAlpha:0];
}
completion:^(BOOL finished){
[m_player.view removeFromSuperview];
m_player = nil;
}];
}
break;
default:
break;
}
}
任何帮助表示感谢!