Inability to get SPC and CKC when implementing FPS with AVPlayer in iOS

Inability to get SPC and CKC when implementing FPS with AVPlayer in iOS

We are building an iOS app (with AVPlayer) that deals with playing DRM encrypted files and I'm using MediaKind as my content provider. I'm able to play my HLS files only on the MKPlayer.


We experience the following whenever we try to use the URLs (hlsUrl, licenseUrl, certificateUrl) gotten from MediaKind with Apple's AVPlayer:

  1. We're unable to get SPC with the applicationCertificateData (1) when the certificateUrl is used. We get a "Cannot Open" error with 11836 code.
  2. if we directly add the .cer (certificate) file to my app bundle and we use the data of the content of the file (2), we're able to get SPC but the response of the request for the CKC comes with a status code of 469.


We get "There was a problem providing access to protected content" error when we try on JWPlayer (https://developer-tools.jwplayer.com/stream-tester).


(1) Data(contentsOf: URL(string: certificateUrl))

(2) Data(contentsOf: Bundle.main.url(forResource: "certificate", withExtension: "cer"))


But if we use the details from this sample project (https://github.com/cloud-video-kit/avplayer-ios-samples/blob/main/DRMPlaybackSwiftUI/DRMPlaybackSwiftUI/Controllers/PlayerViewController.swift), we're able to play the encrypted sample file provided here with AVPlayer and also on JWPlayer


    • Topic Participants

    • Abeti


    Features & Ideas

    Have an idea for a feature? Request a feature or an idea!