2
我不能播放視頻,因爲我有這個通知錯誤:如何播放視頻.mp4 ios7?
- (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;
}
}
任何幫助表示讚賞感謝!
我現在有這個錯誤.. 播放失敗,錯誤描述:操作無法完成 我該怎麼辦? =( – Fabio