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

标签 xcode video ipad mpmovieplayercontroller mp4

我正在尝试让 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/

相关文章:

ios - 在 iOS 中自动打开应用程序

arrays - 将输入字段与数组进行比较

ios - xcode-具有多个测试目标,方案测试做什么

python - 无法在 python 的 videoWriter 模块中使用 opencv 保存视频

mysql - 存储播放列表中视频的顺序

c++ - 通用 lambda xcode 8.3.3

batch-file - 在 ffmpeg 中出现错误 'too many inputs specified for the "scale"filter'

ios - Fiddler - 从 iPad 应用程序捕获和解密 HTTPS 流量

ios - 在 CollectionView 的 didSelectItemAtIndexPath 方法中获取 CGPoint

iphone - imageView 的 iOS alpha 值比较失败