I have a playback that works with the AVAssetReader library and iPod, and when I put the application in the background, it will continue to read audio into the playback buffer, but when it reaches the end of the song and starts reading the next song, startReading fails to start. I get the following error information.
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 restriction on AVAssetReader that I don't know about?
source share