Ipad MPMovieplayerController视频加载但播放时自动暂停 [英] Ipad MPMovieplayerController video loads but automatically pauses when played

查看:181
本文介绍了Ipad MPMovieplayerController视频加载但播放时自动暂停的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想让MPMovieplayerController工作。我加载一个视频一切顺利我甚至看到第一帧然后它自动暂停,如果我按播放它再次暂停。在模拟器中它完美地工作,但在ipad设备上它给出了问题。我甚至可以通过视频搜索,我看到我寻求的帧,但没有播放。这是控制台的一些输出:

I am trying to get the MPMovieplayerController to work. I load a video everything goes wel i even see the first frame but then it automatically pauses, if i press play it pauses again. In the simulator it works perfectly but on the ipad device it gives the problem. I can even seek through the video and i see the frame i seeked to but nothing plays. This is some output from the console:

2010-06-08 22:16:13.145 app[3089:207] Using two-stage rotation animation. To use the smoother single-stage animation, this application must remove two-stage method implementations.
[Switching to thread 12803]
warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.2 (7B367)/Symbols/System/Library/VideoDecoders/VCH263.videodecoder" (file not found).
warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.2 (7B367)/Symbols/System/Library/VideoDecoders/H264H2.videodecoder" (file not found).
warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.2 (7B367)/Symbols/System/Library/VideoDecoders/MP4VH2.videodecoder" (file not found).
warning: Unable to read symbols for "/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.2 (7B367)/Symbols/System/Library/VideoDecoders/JPEGH1.videodecoder" (file not found).
2010-06-08 22:16:15.145 app[3089:207] setting file:///private/var/mobile/Applications/46CE5456-6338-4BBF-A560-DCEFF700ACE0/tmp/MediaCache/

我在使用模拟器BTW时没有收到这些警告。

I dont get those warning when using the simulator BTW.

有谁知道如何解决这个问题?

Does anyone know how to fix this ?

推荐答案

将MPMoviePlayerController的属性useApplicationAudioSession设置为NO解决问题。

Set the property "useApplicationAudioSession" of the MPMoviePlayerController to "NO" to resolve the problem.

这篇关于Ipad MPMovieplayerController视频加载但播放时自动暂停的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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