Constructor

PrecacheRequestData

new PrecacheRequestData(data)

Parameter

data

Optional

string

Application precache data.

Extends
cast.receiver.MediaManager.LoadRequestData

Properties

activeTrackIds

unknown

Array of trackIds that are active. If the array is not provided, the default tracks will be active.

Inherited from
cast.receiver.MediaManager.LoadRequestData#activeTrackIds

autoplay

unknown

If the autoplay parameter is specified, the media player will begin playing the content when it is loaded. Even if autoplay is not specified,the media player implementation may choose to begin playback immediately.

Inherited from
cast.receiver.MediaManager.LoadRequestData#autoplay

credentials

unknown

Optional user credentials.

Inherited from
cast.receiver.MediaManager.LoadRequestData#credentials

credentialsType

unknown

Optional credentials type. The type 'cloud' is a reserved type used by load requests that were originated by voice assistant commands.

Inherited from
cast.receiver.MediaManager.LoadRequestData#credentialsType

currentTime

unknown

Seconds since beginning of content. If the content is live content, and currentTime is not specified, the stream will start at the live position.

Inherited from
cast.receiver.MediaManager.LoadRequestData#currentTime

customData

unknown

Application-specific data for this request. It enables the sender and receiver to easily extend the media protocol without having to use a new namespace with custom messages.

Inherited from
cast.receiver.MediaManager.RequestData#customData

loadOptions

unknown

Added load options.

Inherited from
cast.receiver.MediaManager.LoadRequestData#loadOptions

media

unknown

If the autoplay parameter is specified, the media player will begin playing the content when it is loaded. Even if autoplay is not specified, the media player implementation may choose to begin playback immediately.

Inherited from
cast.receiver.MediaManager.LoadRequestData#media

mediaSessionId

unknown

Id of the media session that the request applies to.

Inherited from
cast.receiver.MediaManager.RequestData#mediaSessionId

playbackRate

unknown

The media playback rate.

Inherited from
cast.receiver.MediaManager.LoadRequestData#playbackRate

precacheData

(string or undefined)

Application precache data.

queueData

unknown

Queue data.

Inherited from
cast.receiver.MediaManager.LoadRequestData#queueData

requestId

unknown

Id of the request, used to correlate request/response.

Inherited from
cast.receiver.MediaManager.RequestData#requestId