makeStreamingContentKeyRequestData(forApp:contentIdentifier:options:completionHandler:)
Obtains encrypted key request data for a specific combination of app and content.
Declaration
func makeStreamingContentKeyRequestData(forApp appIdentifier: Data, contentIdentifier: Data?, options: [String : Any]? = nil, completionHandler handler: @escaping @Sendable (Data?, (any Error)?) -> Void)func makeStreamingContentKeyRequestData(forApp appIdentifier: Data, contentIdentifier: Data?, options: [String : Any]? = nil) async throws -> DataParameters
- appIdentifier:
An opaque identifier for the app.
- contentIdentifier:
An opaque identifier for the content.
- options:
A dictionary containing any additional information required to obtain the key. The value of this parameter is
nilwhen no additional information is required. - handler:
A block called after the streaming content key request has been prepared.
- contentKeyRequestData
The streaming content key request data.
- error
An object that describes the error, if one occurred; otherwise, the value is
nil.
Discussion
If AVContentKeyRequestProtocolVersionsKey is not specified in the options parameter, the default protocol of 1 is used.