Instance Method


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


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



The container- and protocol-specific identifier used to obtain a key response.


The container- and protocol-specific data used to obtain a key response.


No options are currently defined. Set this value to nil.


Either the identifier or initializationData parameters must be non-nil. If required by the protocol, both parameters can be non-nil.

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.

protocol AVContentKeySessionDelegate

The protocol you implement to handle content key requests.

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.