---
title: originatingRecipient
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcontentkeyrequest/originatingrecipient
---

# originatingRecipient

The AVContentKeyRecipient which initiated this request, if any.

## Declaration

```swift
weak var originatingRecipient: (any AVContentKeyRecipient)? { get }
```

## Discussion

Discussion The originatingRecipient is an AVFoundation object responsible for initiating an AVContentKeyRequest. For example, an AVURLAsset used for playback can trigger an AVContentKeyRequest. If an application triggers key loading directly, for example with -[AVContentKeySession processContentKeyRequestWithIdentifier:initializationData:options:], the value of originatingRecipient will be nil. The originatingRecipient of key requests from HLS interstitials will always be the corresponding interstitial AVURLAsset. To receive key requests for DRM-protected interstitial content, applications must ensure their AVContentKeySession is attached to these interstitial AVURLAssets. These interstitial AVURLAssets may be retrieved from the primary AVURLAsset via AVPlayerInterstitialEventMonitor.

## See Also

### Getting content key request properties

- [identifier](avfoundation/avcontentkeyrequest/identifier.md)
- [canProvidePersistableContentKey](avfoundation/avcontentkeyrequest/canprovidepersistablecontentkey.md)
- [error](avfoundation/avcontentkeyrequest/error.md)
- [initializationData](avfoundation/avcontentkeyrequest/initializationdata.md)
- [renewsExpiringResponseData](avfoundation/avcontentkeyrequest/renewsexpiringresponsedata.md)
- [status](avfoundation/avcontentkeyrequest/status-swift.property.md)
- [AVContentKeyRequest.Status](avfoundation/avcontentkeyrequest/status-swift.enum.md)
