<!--
{
  "availability" : [
    "iOS: 10.3.0 -",
    "iPadOS: 10.3.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.4 -",
    "tvOS: 10.2.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVContentKeyResponse/init(fairPlayStreamingKeyResponseData:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVContentKeyResponse(cm)contentKeyResponseWithFairPlayStreamingKeyResponseData:"
  },
  "title" : "init(fairPlayStreamingKeyResponseData:)"
}
-->

# init(fairPlayStreamingKeyResponseData:)

Creates a content key response with an encrypted key response data blob when FairPlay Streaming is the key delivery method.

```
convenience init(fairPlayStreamingKeyResponseData keyResponseData: Data)
```

## Parameters

`keyResponseData`

The key data from the FairPlay Streaming key server.

## Return Value

Returns a new [`AVContentKeyResponse`](/documentation/AVFoundation/AVContentKeyResponse) object to decrypt content.

## Discussion

Use the results of this initializer when the content key session creates a key request using the [`fairPlayStreaming`](/documentation/AVFoundation/AVContentKeySystem/fairPlayStreaming) parameter. The results are then passed to the [`processContentKeyResponse(_:)`](/documentation/AVFoundation/AVContentKeyRequest/processContentKeyResponse(_:)) method to supply the decrypter with key data.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)