MPMoviePlayerController 视频在屏幕为黑色时进入全屏模式。然后该应用程序被阻止。此问题仅适用于 iOS 6.0。但 iOS 5.1 运行良好。这是我的代码。如果我双击播放器全屏打开,但显示黑屏。
self.moviePlayerController = [[MPMoviePlayerController alloc] init];
[self.moviePlayerController.view setFrame:_moviePlayerContentView.bounds];
[self.moviePlayerController setControlStyle:MPMovieControlStyleNone];
[self.moviePlayerController setAllowsAirPlay:NO];
[_moviePlayerContentView addSubview:self.moviePlayerController.view];
[self.moviePlayerController stop];
[self.moviePlayerController setContentURL:videoURL];
[self.moviePlayerController.view setHidden:NO];
[self.moviePlayerController prepareToPlay];
[self.moviePlayerController play];
我该如何处理这个问题?
达到 MPMovieFinishReasonPlaybackEnded 后,如何禁用全屏模式?
请帮我。提前致谢。