Errors related to media playback, whether received from AVPlayer directly or read from an AVPlayerItem access log, usually lack information about the root cause of a playback issue.
Most errors we receive in the CoreMediaErrorDomain are namely associated with undocumented error codes and non-explicit error messages.
Here are a few examples:
- Error Domain=CoreMediaErrorDomain Code=-12927 "(null)"
- Error Domain=CoreMediaErrorDomain Code=-16012 "(null)"
- Error Domain=CoreMediaErrorDomain Code=-12685 "The operation couldn’t be completed."
- Error Domain=CoreMediaErrorDomain Code=-12648 "The operation couldn’t be completed."
It would be helpful that Core Media:
- Provides a public constant for the
CoreMediaErrorDomain. - Provides public constants for the error codes within this domain.
- Ensures each error is associated with a meaningful human-readable description.
If not possible having at least a documented list of error codes (as is done in the FairPlay programming guide PDF, for example) would allow us to better classify errors and understand playback errors experienced by our users.
I opened a FB17673165 feedback with this suggestion as well.
Thanks in advance for considering this improvement request.