iOS 16 - Exception Thrown for processContentKeyResponse

Issue:

I am supporting an iOS application that streams Fairplay DRM 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 exception is as follows:

-[AVContentKeyRequest processContentKeyResponse:] AVContentKeySession's keySystem is not same as that of keyResponse

This issue does not occur on older devices (we support iOS 13, 14, 15)

I am unable to find documentation about this error so any insight is appreciated:

High-Level Code Overview

  • Use ContentKeyRequest to request an application certificate
  • Use returned Cert to call makeStreamingContentKeyRequestData
  • Use returned data to request FairPlay license
  • Use returned CKC to generate AVContentKeyResponse (i.e. AVContentKeyResponse(fairPlayStreamingKeyResponseData:_))
  • Call processContentKeyResponse(_)
  • App crash/exception thrown when callling processContentKeyResponse

I am seeing other issues related to DRM and iOS 16 but these are specific to downloaded and offline content which do not match my use case.

Accepted Reply

Please check my answer here: https://stackoverflow.com/a/76161977/4261600

Replies

Hi rmigneco31583,

Did you found any solution? We have same issue. We're getting crash around 200 in a day :(

Like you, we're receiving when user is watching lively. Our application supported to above iOS 12 and these crashes is only in iOS 16. Also, we have Apple TV support and we have same issue on that.

  • Hi @rushly - no solution yet.

    Yes, we are also seeing the issue on Apple TV as well.

    Will let you know if I hear anything.

  • No solutions yet. Will let you know if I hear anything.

Add a Comment

@rushly I have not figured out how to solve this yet. Have you had any success?

  • We're also seeing a significant number of this crash on iOS 16. As others have mentioned, this is specific to iOS 16.

Add a Comment

Please check my answer here: https://stackoverflow.com/a/76161977/4261600