FairPlay streaming issue

I am using a sample test app provided by Apple (HLSCatalog) that works with FairPlay streaming. I changed the manifest URL and the content keys as well as specifying a different application certificate and loading that certificate to the device. With the same manifest and app cert, the content plays successfully on Safari with FPS.

I get this error in the callback that should be returning the SPC data:

Code Block
Error Domain=AVFoundationErrorDomain Code=-11836 "Cannot Open" UserInfo={NSLocalizedFailureReason=This app is not authorized to play this file., NSLocalizedDescription=Cannot Open, NSUnderlyingError=0x28146bbd0 {Error Domain=NSOSStatusErrorDomain Code=-42679 "(null)"}

Hello @khaposhta. I know it has been a while, but were you able to solve this error?

This may have other causes, but this is the error you get if there is problem loading the certificate. In my case a change was made to the server that was hosting the cert such that we got back some html instead of the certificate. Fixing that resolved this error.

FairPlay streaming issue
 
 
Q