Instance Method

makeSecureTokenForExpirationDate(ofPersistableContentKey:completionHandler:)

Creates a secure server playback context that the client sends to the key server to get an expiration date for the given persistable content key data.

Declaration

func makeSecureTokenForExpirationDate(ofPersistableContentKey persistableContentKeyData: Data, completionHandler handler: @escaping (Data?, Error?) -> Void)

Parameters

persistableContentKeyData

The previously created persistable content key data.

handler

A block called after the secure token is ready.

secureTokenData

The new secure token.

error

A parameter that holds the error object that explains the error. If no error occurred, the value of this parameter is nil.

See Also

Updating Content Key Requests

func renewExpiringResponseData(for: AVContentKeyRequest)

Tells the receiver that previously provided response data for a content key request is about to expire.

var contentProtectionSessionIdentifier: Data?

The identifier for the current content protection session.