应用程序放入后台后 AVAssetReader 失败,为什么?
我使用 AVAssetReader 和 iPod 库进行播放,当我将应用程序放在后台时,它会继续将音频读取到播放缓冲区,但是当它到达一首歌曲的结尾并开始读取下一首歌曲时,它会在 startReading 时失败被称为。我收到以下错误详细信息。
Error Domain=AVFoundationErrorDomain Code=-11800 "The operation couldn’t be completed. (AVFoundationErrorDomain error -11800.)" UserInfo=0x1bfc20 {NSUnderlyingError=0x113e00 "The operation couldn’t be completed. (OSStatus error -12985.)"}
{
NSUnderlyingError = "Error Domain=NSOSStatusErrorDomain Code=-12985 \"The operation couldn\U2019t be completed. (OSStatus error -12985.)\"";
}
AVAssetReader 是否有我不知道的限制?
I have playback working with AVAssetReader and iPod library and when I put the the app in the background it will continue reading in audio to the playback buffer but when it gets to the end of a song and starts reading on the next song it fails when startReading is called. I get the following error details.
Error Domain=AVFoundationErrorDomain Code=-11800 "The operation couldn’t be completed. (AVFoundationErrorDomain error -11800.)" UserInfo=0x1bfc20 {NSUnderlyingError=0x113e00 "The operation couldn’t be completed. (OSStatus error -12985.)"}
{
NSUnderlyingError = "Error Domain=NSOSStatusErrorDomain Code=-12985 \"The operation couldn\U2019t be completed. (OSStatus error -12985.)\"";
}
Is there a limitation on AVAssetReader that I do not know about?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)