AVPlayer开发中的一些坑

2017-05-23  本文已影响3593人  __LuckyPan__

最近项目中想重新统一视频播放,在此开发中遇到一些问题,在此记录,亦供大家参考。

player item failed:Error Domain=AVFoundationErrorDomain Code=-11839 "Cannot Decode" UserInfo={NSUnderlyingError= 0x123456 {Error Domain=NSOSStatusErrorDomain Code=-12913 "(null)"}, NSLocalizedFailureReason=The decoder required for this media is busy., NSLocalizedRecoverySuggestion=Stop any other actions that decode media and try again., NSLocalizedDescription=Cannot Decode}

An instance 0x1700196c0 of class AVPlayerItem was deallocated while key value observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x17045bff0> ( <NSKeyValueObservance 0x1702d30f0: Observer: 0x136fd6930, Key path: status, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x17465eab0> <NSKeyValueObservance 0x1704c0000: Observer: 0x136fd6930, Key path: loadedTimeRanges, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x170852ba0> )

Error Domain=AVFoundationErrorDomain Code=-11800 "这项操作无法完成" UserInfo=0x175271340 {NSUnderlyingError=0x17485bba0 "未能完成操作。(“OSStatus”错误 -12983。)", NSLocalizedFailureReason=发生未知错误(-12983), NSLocalizedDescription=这项操作无法完成}

-[AVPlayerItem seekToTime:toleranceBefore:toleranceAfter:completionHandler:] Seeking is not possible to time {INVALID}

上一篇 下一篇

猜你喜欢

热点阅读