Instance Property

delegate

The delegate for the receiver.

Declaration

weak var delegate: AVContentKeySessionDelegate? { get }

Discussion

Set the receiver's delegate using the setDelegate(_:queue:) method. The delegate protocol is described in AVContentKeySessionDelegate.

See Also

Initializing the Content Key Request Process

func setDelegate(AVContentKeySessionDelegate?, queue: DispatchQueue?)

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

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.

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.