Instance Method

streamingContentKeyRequestData(forApp:contentIdentifier:options:)

Obtains key request data for a specific combination of application and content.

Declaration

func streamingContentKeyRequestData(forApp appIdentifier: Data, contentIdentifier: Data, options: [String : Any]? = nil) throws -> Data

Parameters

appIdentifier

An opaque content identifier for the application. The value of this identifier depends on the particular system used to provide the decryption key.

contentIdentifier

An opaque identifier for the content. The value of this identifier depends on the particular system used to provide the decryption key.

options

Additional information necessary to obtain the key, or nil if no additional information is required.

outError

On input, a pointer to an error object. If an error occurs while obtaining the streaming content key, the pointer is set to an appropriate error object on output.

Return Value

The key request data that must be transmitted to the key vendor to obtain the content key.

Discussion

See Also

Accessing the Request Data

var request: URLRequest

The URL request object for the resource.

var requestor: AVAssetResourceLoadingRequestor

The asset resource requestor that made the request.

class AVAssetResourceLoadingRequestor

An object that contains information about the originator of a loading request.

let AVAssetResourceLoadingRequestStreamingContentKeyRequestRequiresPersistentKey: String

Specifies whether the content key request requires a persistable key to be returned from the key vendor.

var dataRequest: AVAssetResourceLoadingDataRequest?

The range of requested resource data.

var redirect: URLRequest?

An URL request instance if the loading request was redirected.