MPMoviePlayer麻烦

时间:2013-02-13 20:18:21

标签: iphone xcode xcode4 ios6

我在一个viewcontroller上有三个视频,当我尝试播放第三个视频时出现此错误:

2013-02-01 07:44:00.688 LYWAM Tour[1218:907] [MPAVController] Autoplay: Disabling autoplay for pause 2013-02-01 07:44:00.690 LYWAM Tour[1218:907] [MPAVController] Autoplay: Disabling autoplay

以下是我用来播放视频的内容:

-(void)ThreeVideo8
{
    NSURL *url308 = [NSURL fileURLWithPath:[[NSBundle mainBundle]
                                            pathForResource:@"LayersofMeaning" ofType:@"mp4"]];
    ThreeVideoSeven =  [[MPMoviePlayerController alloc]
                        initWithContentURL:url308];

    ThreeVideoEight.controlStyle = MPMovieControlStyleDefault;
    ThreeVideoEight.shouldAutoplay = YES;
    [self.view addSubview:ThreeVideoEight.view];
    [ThreeVideoEight setFullscreen:YES animated:YES];
}

-(void) moviePlayBackDidFinish3:(NSNotification *)aNotification{
    [ThreeVideoEight.view removeFromSuperview];
    ThreeVideoEight = nil;
}

- (void)moviePlayerWillExitFullscreen3:(NSNotification*) aNotification {
    [ThreeVideoEight stop];
    [ThreeVideoEight.view removeFromSuperview];
    ThreeVideoEight = nil;
}

但它没有加载,它只是给我上面的错误

0 个答案:

没有答案