pub unsafe trait AVContentKeyRecipient {
// Provided methods
unsafe fn contentKeySession_didProvideContentKey(
&self,
content_key_session: &AVContentKeySession,
content_key: &AVContentKey,
)
where Self: Sized + Message { ... }
unsafe fn mayRequireContentKeysForMediaDataProcessing(&self) -> bool
where Self: Sized + Message { ... }
}AVContentKeySession only.Expand description
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.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn contentKeySession_didProvideContentKey(
&self,
content_key_session: &AVContentKeySession,
content_key: &AVContentKey,
)
unsafe fn contentKeySession_didProvideContentKey( &self, content_key_session: &AVContentKeySession, content_key: &AVContentKey, )
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.
Sourceunsafe fn mayRequireContentKeysForMediaDataProcessing(&self) -> bool
unsafe fn mayRequireContentKeysForMediaDataProcessing(&self) -> bool
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.
Trait Implementations§
Source§impl ProtocolType for dyn AVContentKeyRecipient
impl ProtocolType for dyn AVContentKeyRecipient
impl<T> ImplementedBy<T> for dyn AVContentKeyRecipient
Implementations on Foreign Types§
impl<T> AVContentKeyRecipient for ProtocolObject<T>where
T: ?Sized + AVContentKeyRecipient,
Implementors§
impl AVContentKeyRecipient for AVURLAsset
AVAsset only.