이 코드를 사용하여 비디오를 재생하고 있습니다. 그러나 비디오는 절대 재생되지 않으며, 콜백은 결코 끝났다고 말할 수 없습니다. 나는 실종 된 것이나 그것이 없어야하는 것을 볼 수 없다. 나는 경로를 확인했는데 괜찮습니다. 동영상 재생보기가 나타납니다. 그 시점에서 재생되지 않습니다.MPMoviePlayerController가 비디오를 재생하지 않습니다.
제안 사항?
NSURL *movieURL = [[NSBundle mainBundle] URLForResource:@"IntroMovie" withExtension:@"mov"];
NSLog(@"%@", movieURL);
MPMoviePlayerController *moviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:movieURL];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(playbackFinished:) name:MPMoviePlayerPlaybackDidFinishNotification object:moviePlayerController];
[moviePlayerController prepareToPlay];
[moviePlayerController.view setFrame:self.view.bounds];
[self.view addSubview:moviePlayerController.view];
[moviePlayerController play];
ARC 또는 비 ARC를 사용하고 있습니까? –
내가 ARC를 사용하여 타겟팅하는 아이폰 OS –
볼 7, http://stackoverflow.com/questions/7493860/problem-playing-mov-file-in-mpmovieplayercontroller 이것은 지금까지 비디오 파일 자체에 문제가되지 않습니다 – karthika