Protocol

AVContentKeySessionDelegate

The protocol you implement to handle content key requests.

Declaration

@protocol AVContentKeySessionDelegate

Topics

Providing New Content Key Requests

- contentKeySession:didProvideContentKeyRequest:

Provides the receiver with a new content key request object.

Required.

- contentKeySession:didProvideRenewingContentKeyRequest:

Provides the receiver with a new content key request object for the renewal of an existing content key.

- contentKeySession:didProvidePersistableContentKeyRequest:

Provides the receiver with a new content key request object to process a persistable content key.

Updating and Retrying Content Key Requests

- contentKeySession:didUpdatePersistableContentKey:forContentKeyIdentifier:

Provides the receiver with an updated persistable content key for a specific key request.

- contentKeySession:shouldRetryContentKeyRequest:reason:

Provides the receiver with a content key request object to retry.

AVContentKeyRequestRetryReason

The reason for asking the client to retry a content key request.

- contentKeySessionContentProtectionSessionIdentifierDidChange:

Tells the receiver the content protection session identifier changed.

- contentKeySession:contentKeyRequest:didFailWithError:

Tells the receiver that the content key request failed.

- contentKeySession:contentKeyRequestDidSucceed:

Tells the content key session that the response to a content key requeset was successfully processed.

- contentKeySessionDidGenerateExpiredSessionReport:

Notifies the sender that an expired session report has been generated.

Relationships

Inherits From

See Also

Initializing the Content Key Request Process

- setDelegate:queue:

Sets the receiver's delegate and indicates the dispatch queues used.

delegate

The delegate for the receiver.

delegateQueue

The dispatch queue that invokes delegate callbacks.

- addContentKeyRecipient:

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

contentKeyRecipients

An array of content key recipients.

AVContentKeyRecipient

A protocol for requiring decryption keys for media data.

- processContentKeyRequestWithIdentifier:initializationData:options:

Tells the receiver to start loading the content decryption key with the specified identifier and initialization data.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software