AVContentKeyRecipient

Trait AVContentKeyRecipient 

Source
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 { ... }
}
Available on crate feature 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§

Source

unsafe fn contentKeySession_didProvideContentKey( &self, content_key_session: &AVContentKeySession, content_key: &AVContentKey, )
where Self: Sized + Message,

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.

Source

unsafe fn mayRequireContentKeysForMediaDataProcessing(&self) -> bool
where Self: Sized + Message,

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

Source§

const NAME: &'static str = "AVContentKeyRecipient"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn AVContentKeyRecipient

Implementations on Foreign Types§

Source§

impl<T> AVContentKeyRecipient for ProtocolObject<T>

Implementors§

Source§

impl AVContentKeyRecipient for AVURLAsset

Available on crate feature AVAsset only.