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

sla*_*rIQ 9 video xcode mp4 mpmovieplayercontroller ipad

我想让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/
Run Code Online (Sandbox Code Playgroud)

使用模拟器BTW时,我不会收到这些警告.

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

小智 11

将MPMoviePlayerController的属性"useApplicationAudioSession"设置为"NO"以解决问题.


sla*_*rIQ 7

发现解决方案只是重新启动ipad,它再次工作奇怪,但就是这样:)

  • 有点难以告诉用户一直重启他们的设备.我们在应用启动时播放视频,这会导致应用挂起.谁有任何关于如何恢复的好主意? (2认同)