Instance Method

streamingContentKeyRequestDataForApp:contentIdentifier:options:error:

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

Declaration

- (NSData *)streamingContentKeyRequestDataForApp:(NSData *)appIdentifier contentIdentifier:(NSData *)contentIdentifier options:(NSDictionary<NSString *,id> *)options error:(NSError * _Nullable *)outError;

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

request

The URL request object for the resource.

requestor

The asset resource requestor that made the request.

AVAssetResourceLoadingRequestor

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

- persistentContentKeyFromKeyVendorResponse:options:error:

Obtains a persistable content key from a context.

AVAssetResourceLoadingRequestStreamingContentKeyRequestRequiresPersistentKey

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

contentInformationRequest

The information for a requested resource.

dataRequest

The range of requested resource data.

redirect

An URL request instance if the loading request was redirected.