FairPlay Streaming Error Codes

When working with FairPlay Streaming (FPS), we may encounter errors with random error codes that lack proper documentation or explanation. An example of such an error is:

Error Domain=CoreMediaErrorDomain Code=-42803 "(null)"

Various errors may occur when working on FairPlay Streaming. The following provides the error codes and corresponding descriptions for these potential errors that may occur intermittently while working with FairPlay Streaming.

Error Code Description
-42656 Lease duration has expired.
-42668 The CKC passed in for processing is not valid.
-42672 A certificate is not supplied when creating SPC.
-42673 assetId is not supplied when creating an SPC.
-42674 Version list is not supplied when creating an SPC.
-42675 The assetID supplied to SPC creation is not valid.
-42676 An error occurred during SPC creation.
-42679 The certificate supplied for SPC creation is not valid.
-42681 The version list supplied to SPC creation is not valid.
-42783 The certificate supplied for SPC is not valid and is possibly revoked.
-42803 Offline key is invalid.
-42799 FPS returns this error code when Apple issues a security update and the existing persistent key format is no longer supported. In this case, the application must request a new persistent key from the server.
-42800 FPS returns this error code when persistent key has expired. The server always has an option to add a validity period for each key it issues for offline playback. Once the validity period is over, the Apple device will refuse to decrypt offline content protected with such key and indicate the error with this error code.
It is up to the application developers to decide whether to request a new key from the server or treat this error condition as a permanent expiry; for example, a recorded sporting event must not be playable after 48 hours and no key renewal is possible. To use the best practice and achieve maximum flexibility, always send a key-renewal request to the server and let the server decide whether to allow the renewal.
-42811 The FPS library returns this error code when there is a Security Level violation.

You've successfully subscribed to Developer Insider
Great! Next, complete checkout for full access to Developer Insider
Welcome back! You've successfully signed in
Success! Your account is fully activated, you now have access to all content.