Fairplay with AES-128 encrypted content

Hello,


I have already implemented Fairplay KSM and clients and with test SAMPLE-AES content I get playback successfully. However when I replace the test content with AES-128 CBC encrypted content and modify the EXT-X-KEY line in the playlist like:
#EXT-X-KEY:METHOD=AES-128,URI="skd://720_ahi.fps.key",KEYFORMAT="com.apple.streamingkeydelivery",KEYFORMATVERSIONS="1"

I get a sharp noise with no video in the client.


I verified the KSM is sending the correct key and iv in the CKC and all webkitkey events are properly triggered with no errors in the client (Safari on MacOS).


Reason for using AES-128 content is all my content is AES-128 authored and currently I am using clearkey to protect it. I am wondering if I can use Fairplay without re-authoring the content.


Can I use Fairplay with AES-128 encrypted content or does it need to be SAMPLE-AES encrypted?

Can you please send the client code to decrypt and play Fairplay encrypted content on Safari browser or can you please point me to the documents which can help me to write client code in safari browser to decrypt the content.

It's in the FairPlay Streaming Server SDK which you can download from https://developer.apple.com/streaming/fps/

Fairplay with AES-128 encrypted content
 
 
Q