Initializer

init(keySystem:)

Creates a content key session to manage a collection of content decryption keys.

Declaration

convenience init(keySystem: AVContentKeySystem)

Parameters

keySystem

A valid key system used to retrieve keys.

Return Value

Returns a new AVContentKeySession instance.

Discussion

The AVContentKeySession instance returned is capable of managing a collection of content decryption keys that correspond to the input key system. An invalidArgumentException is raised when the value of keySystem is unsupported.

See Also

Creating New Content Key Sessions

init(keySystem: AVContentKeySystem, storageDirectoryAt: URL)

Creates a content key session to manage a collection of content decryption keys; points to a directory that stores abnormal session termination reports.

var keySystem: AVContentKeySystem

The type of key system used to retrieve keys.

struct AVContentKeySystem

A key-delivery method for a content key session.