Instance Method

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 (Data?, Error?) -> Void)

Parameters

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 nil when 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.

See Also

Getting Content Key Request Data

let AVContentKeyRequestProtocolVersionsKey: String

A key that specifies the versions of the content protection protocol supported by the application.