persistentContentKey(fromKeyVendorResponse:options:)
Obtains a persistable content key from a context.
Declaration
func persistentContentKey(fromKeyVendorResponse keyVendorResponse: Data, options: [String : Any]? = nil) throws -> DataParameters
- keyVendorResponse:
The response returned from the key vendor as a result of a request generated from Streamingcontentkeyrequestdata(forapp:contentidentifier:options:).
- options:
Additional information necessary to obtain the key, or
nilif no additional information is required.
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.