I am working on a video app and from time to time I get error like this:
"The operation could not be completed. An unknown error occured (-12642)"
"The operation could not be completed. An unknown error occured (-12875)"
I couldn't find the map of the AVPlayer error code anywhere online. Does anyone know where I can get the error descriptions of all the -12*** code?
Thanks!
-12642 indicates that there was an error in the HLS playlist
-12875 indicates a request timeout
To resolve the first, take a look at running the mediastreamvalidator tool against your playlists to ensure they are authored correctly. The tools can be downloaded from the developer portal at https://developer.apple.com/downloads/index.action?=http%20live%20streaming%20tools
For the latter, it might be that your servers aren't able to deliver the media quickly enough, or there is some sort of a issue causing requests to be dropped. I've seen this before if a proxy server is misbehaving, or if a server is overwhelmed.