Contents

Recover from Content Playback Failure

Provide a recovery queue that allows the client to resume playback after an error.

URL

POST https://cloudextension-testservice.local/api/queues/contentPlaybackFailure

Header Parameters

NameTypeDescription
Accept-Language Optionalstring

The client’s current user interface language. If possible, respond with localized content for this language.

User-Agent Requiredstring

The client’s extension protocol. This is an RFC 7231-compliant string that contains the product name AppleCloudExtension and the version of the SiriKit extension library that’s running on the client.

x-applecloudextension-retry-count Optionaluint32

The number of previous requests from the client. The client omits this header on the first attempt.

x-applecloudextension-session-id Requiredstring

A session identifier to pair each request and response. Respond to requests with the value the client provides.

Response Codes

StatusReasonTypeDescription
200OK
Content-Type: application/json
Queue

The request is successful.

204No Content

The service is unable to provide a recovery queue segment.

401Unauthorized

The request requires authorization. The client can attempt to reauthorize and then retry the request.

410Gone

The request includes an expired UserActivity, which the service is unable to use to provide a recovery queue segment.

Discussion

If the playback of a queue fails to start, or there’s an error during playback that the client can recover from, the client reports the failure by sending a request to this endpoint. Configure your service to respond with a recovery queue that the client can use to restart playback.

Examples of recoverable playback failures include:

  • The client is unable to load the media using the provided URL.

  • The client is unable to acquire a content key for a protected asset.

  • The number of items in the queue segment exceeds the configured maximum.

HTTP Body

A JSON object that describes the playback failure, the state of the current queue, and the constraints to apply to the recovery queue.

See Also

Playback Failure