Instance Method

respondByRequestingPersistableContentKeyRequestAndReturnError()

Tells the receiver that the app requires a persistable content key request object for processing.

Declaration

iOS, Mac Catalyst
func respondByRequestingPersistableContentKeyRequestAndReturnError() throws
macOS
func respondByRequestingPersistableContentKeyRequest() throws

Parameters

outError

The error returned if a persistable content key request can't be requested.

Return Value

Returns true if successful. If false, respond to this request with either processContentKeyResponse(_:) or processContentKeyResponseError(_:).

Discussion

To create a key that persists across multiple playback sessions, use this method to request an AVPersistableContentKeyRequest object. If the underlying protocol supports persistable content keys, the delegate receives a persistable content key request via the contentKeySession(_:didProvide:) method. An internalInconsistencyException is returned if your delegate does not respond to contentKeySession(_:didProvide:).

See Also

Responding to the Content Key Request

func processContentKeyResponse(AVContentKeyResponse)

Sends the specified content key response to the receiver for processing.

func processContentKeyResponseError(Error)

Tells the receiver that the app was unable to obtain a content key response.

func respondByRequestingPersistableContentKeyRequest()

Tells the receiver that the app requires a persistable content key request object for processing.

Deprecated