我正在尝试让 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/
顺便说一句,我在使用模拟器时没有收到这些警告。
有谁知道如何解决这个问题?
最佳答案
将 MPMoviePlayerController 的“useApplicationAudioSession”属性设置为“NO”以解决问题。
关于xcode - Ipad MPMovieplayerController 视频加载但播放时自动暂停,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3000969/