contentKeySession(_:didUpdatePersistableContentKey:forContentKeyIdentifier:)
Provides the receiver with an updated persistable content key for a specific key request.
Declaration
optional func contentKeySession(_ session: AVContentKeySession, didUpdatePersistableContentKey persistableContentKey: Data, forContentKeyIdentifier keyIdentifier: Any)Parameters
- session:
The content key session that is providing the updated persistable content key.
- persistableContentKey:
The updated persistent content key data. This data can be stored offline and used to answer future content key requests with the matching key identifier.
- keyIdentifier:
A container- and protocol-specific identifier for the updated persistent content key.
Discussion
If the content key session provides updated persistable content key data, previous key data is no longer valid and cannot be used to answer future loading requests.
See Also
Updating and retrying content key requests
contentKeySession(_:didProvide:forInitializationData:)contentKeySession(_:externalProtectionStatusDidChangeFor:)contentKeySession(_:shouldRetry:reason:)AVContentKeyRequest.RetryReasoncontentKeySessionContentProtectionSessionIdentifierDidChange(_:)contentKeySession(_:contentKeyRequest:didFailWithError:)contentKeySession(_:contentKeyRequestDidSucceed:)contentKeySessionDidGenerateExpiredSessionReport(_:)