Fairplay Playback: AVFoundationErrorDomain reason: Optional("An unknown error occurred (-42650)")

I am trying to play a Fairplay DRM content. I am able to load the certificate. After this when I am trying to get SPC data from iOS system, it gives me this error:

AVFoundationErrorDomain reason: Optional("An unknown error occurred (-42650)")


Can you please help me understand what this error code means?

How'd you solve this ? I am facing the same error 😟

I got this error also. In my case, I was generating the applicationCertificate using the wrong data format (the appIdentifier parameter in `resourceLoadingRequest.streamingContentKeyRequestData(forApp:contentIdentifier:options:)` function) The certificate that was given to me was base64 encoded. So I need to create data with `Data(base64Encoded: yourCertificateString)`.

Did you find the root cause?
Fairplay Playback: AVFoundationErrorDomain reason: Optional("An unknown error occurred (-42650)")
 
 
Q