Creates a content key session to manage a collection of content decryption keys; points to a directory that stores abnormal session termination reports.
SDKs
- iOS 10.3+
- macOS 10.12.4+
- Mac Catalyst 13.0+
- tvOS 10.2+
Framework
- AVFoundation
Declaration
convenience init(keySystem: AVContent Key System, storageDirectoryAt storageURL: URL)
Parameters
keySystem
A valid key system used to retrieve keys.
storageURL
A URL that points to a writable directory. The session uses the directory to facilitate expired session reports after an abnormal session termination.
Return Value
Returns a new AVContentKeySession instance.
Discussion
The AVContent
instance returned is capable of managing a collection of content decryption keys that correspond to the input key system. An invalid
is raised when the value of key
is unsupported.