Contents

persistentContentKey(fromKeyVendorResponse:options:)

Obtains a persistable content key from a context.

Declaration

func persistentContentKey(fromKeyVendorResponse keyVendorResponse: Data, options: [String : Any]? = nil) throws -> Data

Parameters

Return Value

The persistable content key.

Discussion

The data returned from this method may be used to immediately satisfy an AVAssetResourceLoadingDataRequest, as well as any subsequent requests for the same key URL. The value of contentType must be set to AVStreamingKeyDeliveryPersistentContentKeyType when responding with data created with this method.

See Also

Accessing the request data