xcode – Ipad MPMovieplayerController视频加载,但播放时自动暂停

前端之家收集整理的这篇文章主要介绍了xcode – Ipad MPMovieplayerController视频加载,但播放时自动暂停前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我试图让MPMovieplayerController工作.我加载一个视频一切都很顺利,我甚至看到第一帧,但后来它会自动停顿,如果我按播放它再次暂停.在模拟器中,它可以完美地工作,但在ipad设备上它会给出问题.我甚至可以通过视频来查看我看到的帧,但没有播放.这是控制台的一些输出
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时,我不会得到这些警告.

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

解决方法

将MPMoviePlayerController的“useApplicationAudioSession”属性设置为“否”来解决问题.

猜你在找的iOS相关文章