2

この通知エラーがあるため、ビデオを再生できません:

    - (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;
        }


 }

どんな助けでも感謝します!!!

4

1 に答える 1