iosswiftdrmfairplaycastlabs

iOS FairPlay error -42803 for offline playback


The FairPlay license we configured is correctly sharing the content key required for offline playback. But the problem is that - offline playback works once and fails afterwords.

AVPlayer Error:

Code: -42803, domain: CoreMediaErrorDomain, description: The operation couldn’t be completed. (CoreMediaErrorDomain error -42803.), underlyingErrors: []

Error Code -42803 represents - Offline key is invalid.

So I'm not sure who decides the validity of content key or how this is valid for the first playback and fails later on. Any input would be greatly appreciated!


Solution

  • Only the DRM provider can help in such a situation as they only have request/response details.

    Solution:

    Not sure if this is because DRM provider only supports AVContentKeySessionDelegate but this solution worked for us.