<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVContentKeySession/addContentKeyRecipient(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVContentKeySession(im)addContentKeyRecipient:"
  },
  "title" : "addContentKeyRecipient(_:)"
}
-->

# addContentKeyRecipient(_:)

Tells the delegate that the specified recipient should have access to the decryption keys loaded with the session.

```
func addContentKeyRecipient(_ recipient: any AVContentKeyRecipient)
```

## Parameters

`recipient`

The content key recipient to use for the session.

## Discussion

Don’t add a recipient to a session that has expired or had already begun to process media 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)