MPMoviePlayerController显示黑屏 [英] MPMoviePlayerController showing black empty screen

查看:74
本文介绍了MPMoviePlayerController显示黑屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用MPMoviePlayerController播放我已经下载了服务器URL的Application Document文件夹中的本地文件:

I use MPMoviePlayerController to play a local file in my Application Document folder which have I have downloaded for a server URL:

itemMoviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:fileURL];
 [self.view addSubview:itemMoviePlayerController.view];
 itemMoviePlayerController.fullscreen = YES;
 itemMoviePlayerController.movieSourceType = MPMovieSourceTypeFile;
 itemMoviePlayerController.initialPlaybackTime = -1.0;
 [itemMoviePlayerController play];

下载文件后立即播放.mov文件时,它会显示黑屏和空白.应用程序用户界面不可用. 但是,如果下次播放相同的本地文件,则可以正常播放. 我什至验证了playState& localState对于MPMoviePlayerController,它们似乎不错. 黑屏的原因可能是什么?

When I play .mov file just after I downloaded it, It shows up a black empty screen & app UI is unusable. But if play same local file next time, it plays fine. I even verified playState & localState for MPMoviePlayerController they seems fine. What could be reason for black empty screen?

推荐答案

将设备iOS更新到5.0后,此问题似乎已解决.
似乎是iOS SDK先前版本的问题

This issue seems fixed after updating device iOS to 5.0.
Seems to iOS SDK issue for previous version

这篇关于MPMoviePlayerController显示黑屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆