I am using EZDRM provider for DRM protection and using Fairplay on Ipad application, the online video streaming works perfectly , we have also added offline support through the backend and i am downloading the video and the offline key and storing it on the device.
If I download one video and switch the device to airplane mode, then the video plays properly in offline case but if I again download a new video then the newly downloaded video plays properly in offline case but the one that was downloaded before stops working, the avplayeritem responds with errror -
Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo={NSLocalizedFailureReason=An unknown error occurred (-42803), NSLocalizedDescription=The operation could not be completed, NSUnderlyingError=0x2832ea2b0 {Error Domain=NSOSStatusErrorDomain Code=-42803 "(null)"}}
.Basically only the last downloaded video plays in offline mode and all the other downloaded videos fail with the above error, any idea how to fix this issue ?
I have also extracted the container and checked there are different key files downloaded for different videos and the proper key is accessed while playing the video, it is not over riding the previously downloaded key.
What does the error code: 42803 indicate there is no documentation mentioning the significance of this error code. ?