Protocol

AVContentKeySessionDelegate

The protocol you implement to handle content key requests.

Declaration

protocol AVContentKeySessionDelegate

Topics

Providing New Content Key Requests

func contentKeySession(AVContentKeySession, didProvide: AVContentKeyRequest)

Provides the receiver with a new content key request object.

Required.

func contentKeySession(AVContentKeySession, didProvideRenewingContentKeyRequest: AVContentKeyRequest)

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

func contentKeySession(AVContentKeySession, didProvide: AVPersistableContentKeyRequest)

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

Updating and Retrying Content Key Requests

func contentKeySession(AVContentKeySession, didUpdatePersistableContentKey: Data, forContentKeyIdentifier: Any)

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

struct AVContentKeyRequest.RetryReason

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

func contentKeySessionContentProtectionSessionIdentifierDidChange(AVContentKeySession)

Tells the receiver the content protection session identifier changed.

func contentKeySession(AVContentKeySession, contentKeyRequestDidSucceed: AVContentKeyRequest)

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

func contentKeySessionDidGenerateExpiredSessionReport(AVContentKeySession)

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

Relationships

Inherits From

See Also

Initializing the Content Key Request Process

func setDelegate(AVContentKeySessionDelegate?, queue: DispatchQueue?)

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

var delegate: AVContentKeySessionDelegate?

The delegate for the receiver.

var delegateQueue: DispatchQueue?

The dispatch queue that invokes delegate callbacks.

func addContentKeyRecipient(AVContentKeyRecipient)

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

var contentKeyRecipients: [AVContentKeyRecipient]

An array of content key recipients.

protocol AVContentKeyRecipient

A protocol for requiring decryption keys for media data.

func processContentKeyRequest(withIdentifier: Any?, initializationData: Data?, options: [String : Any]?)

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