iphone - 播放音频时 AVPlayer 在 StitchedStreamPlayer 示例中崩溃

标签 iphone ios ios6 avplayer avplayerlayer

StitchedStreamPlayer Apple 文档中的示例说明了如何在 iphone 上传输视频。 该示例适用于给定的示例视频。但是,如果提供的不是视频,而是音频文件的链接,例如 this ,应用程序崩溃并出现以下断言,这似乎来自内部框架文件的断言。

重现: 在 iOS 6 设备上,在 Settings 中:Developer:Network Link Conditioner - Status:ON/Very Bad Network 一旦 AVPlayerLayer 可见(它将是一个黑框,因为没有视频,只有音频),按下播放按钮并滑动 slider 。

2013-06-08 00:00:20.679 StitchedStreamPlayer[3979:907] * Assertion failure in -[AVPlayerPeriodicCaller initWithPlayer:interval:queue:block:], /SourceCache/EmbeddedAVFoundation/EmbeddedAVFoundation-461.12/Fig/AVPlayer.m:3993

2013-06-08 00:00:27.464 StitchedStreamPlayer[3979:907] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: CMTIME_COMPARE_INLINE(interval, >, kCMTimeZero)'

* First throw call stack: (0x32a802a3 0x3a72597f 0x32a8015d 0x33355ab7 0x31bc18e5 0x31bbf5d1 0xb4931 0x349730c5 0x34973077 0x34973055 0x3497290b 0x34972e01 0x3489b5f1 0x34888801 0x3488811b 0x3658b5a3 0x32a55683 0x32a54ee9 0x32a53cb7 0x329c6ebd 0x329c6d49 0x3658a2eb 0x348dc301 0xb37d9 0xb3770) libc++abi.dylib: terminate called throwing an exception

最佳答案

这是 iOS uptil 6.1 中的错误。已在 iOS 7 中修复。

错误 ID 14099611:播放音频时 StitchedStreamPlayer 示例中的 AVPlayer 崩溃

关于iphone - 播放音频时 AVPlayer 在 StitchedStreamPlayer 示例中崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16997020/

相关文章:

iphone - iPhone 的反向查找 API?

iphone - NSSetUncaughtExceptionHandler 无法捕获 iPhone 上的所有错误

ios - 删除应用程序中所有按钮的 UIButton 突出显示

iphone - 模态视图在 ios 6.0 中调整大小,工具栏位于 View 中间

objective-c - 使用 cocos2d 的 onEnter 方法

iphone - UIWindow 在哪里实例化,storyboard 传入?

iphone - 如何在UItableview中检查单元格是否被选中用于图像显示

iphone - 自定义对象的Dealloc

c# - 将 uintptr_t 转换为 id<MTLTexture>

iphone - 使用 setValue : forKey: with an int 时,CoreData 为实体插入新对象时出现错误