public interface AVContentKeyRecipient
Classes of objects that may require decryption keys for media data in order to enable processing, such as parsing or playback, conform to this protocol.
| Modifier and Type | Method and Description |
|---|---|
default void |
contentKeySessionDidProvideContentKey(AVContentKeySession contentKeySession,
AVContentKey contentKey)
contentKeySession:didProvideContentKey:
|
boolean |
mayRequireContentKeysForMediaDataProcessing()
[@property] mayRequireContentKeysForMediaDataProcessing
|
boolean mayRequireContentKeysForMediaDataProcessing()
Indicates whether the receiver may require decryption keys for media data in order to enable processing.
When the value of mayRequireContentKeysForMediaDataProcessing is YES, adding the receiver to an AVContentKeySession allows it to employ the session's already existing keys and also enables the handling of new key requests by the AVContentKeySession's delegate.
default void contentKeySessionDidProvideContentKey(AVContentKeySession contentKeySession, AVContentKey contentKey)
Informs the receiver that an AVContentKey has been obtained as the result of an invocation of -[AVContentKeyRequest processContentKeyResponse:].
The recipient may employ the AVContentKey for use with objects that support manual attachment of keys, such as CMSampleBuffer via an invocation of AVSampleBufferAttachContentKey.