Questions tagged [avcontentkeysession]
6 questions
5
votes
0 answers
Can AVContentKeySession makeStreamingContentKeyRequestDataForApp safely be forced to synchronous?
I have an app that streams audio protected by FairPlay DRM. It originally shipped using AVAssetResourceLoaderDelegate to deliver FairPlay keys, but now I'm updating it to use AVContentKeySession for iOS 11.2 and later. Side note: if you're trying to…

Tom Hamming
- 10,577
- 11
- 71
- 145
4
votes
1 answer
Fairplay stops working on iOS 12.4 and 13
I have code to play encrypted Fairplay streams from my app and it works fine prior iOS 12.4. I use AVAssetResourceLoaderDelegate to get AVAssetResourceLoadingRequest from resourceLoader:shouldWaitForLoadingOfRequestedResource: and then extract SPC…

iUrii
- 11,742
- 1
- 33
- 48
3
votes
1 answer
iOS 16: AVContentKeyRequest processContentKeyResponse Throws Exception
Issue:
I am supporting a streaming iOS application that uses Fairplay DRM to playback protected content.
On iOS 16 devices, I am seeing intermittent exceptions thrown when trying to process the CKC returned by the license server.
The thrown…

rmigneco
- 595
- 4
- 16
1
vote
1 answer
AVContentKeySession API equivalent on MacOS/Safari?
I am implementing a Fairplay Streaming player on Safari.It needs to prefetch a set of keys from KSM before the playback. All the examples I came across implement AvContentKeySession api but it is available only in Swift and Objective-C(for ios).…

Sathish Rao
- 11
- 2
1
vote
1 answer
The delegate method on AVContentKeySessionDelegate are not being called
I'm attempting to play an encrypted HLS stream using AVContentKeySession, but do not achieve playback and am seeing "NSURLConnection finished with error - code -1002" in the logs. The delegate methods on AVContentKeySessionDelegate are not being…

mm_857
- 171
- 11
0
votes
2 answers
AVContentKeySessionDelegate methods not called
Implemented the delegate methods of AVContentKeySessionDelegate within my ViewController.swift in my iOS application which is to play drm content using Brightcove SDK.
Code snippet :
class ViewController: UIViewController,…

Alen Alexander
- 725
- 6
- 22