# cast.[framework](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework).[messages](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages).PreloadRequestData

class static

Media event PRELOAD request data.

## Constructor

### PreloadRequestData

new
PreloadRequestData(itemId)

| #### Parameter ||
|---|---|
| itemId | number The ID of the queue item. |

Extends
:   [cast.framework.messages.LoadRequestData](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages.LoadRequestData)

## Properties

### activeTrackIds

(non-null Array of number or undefined)

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

Inherited from
:   [cast.framework.messages.LoadRequestData#activeTrackIds](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages.LoadRequestData#activeTrackIds)

### autoplay

(boolean or undefined)

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.framework.messages.LoadRequestData#autoplay](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages.LoadRequestData#autoplay)

### credentials

(string or undefined)

Optional user credentials.

Inherited from
:   [cast.framework.messages.LoadRequestData#credentials](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages.LoadRequestData#credentials)

### credentialsType

(string or undefined)

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

Inherited from
:   [cast.framework.messages.LoadRequestData#credentialsType](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages.LoadRequestData#credentialsType)

### currentTime

(number or undefined)

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.framework.messages.LoadRequestData#currentTime](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages.LoadRequestData#currentTime)

### customData

(non-null Object or undefined)

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.framework.messages.RequestData#customData](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages.RequestData#customData)

### itemId

number

The ID of the queue item.

### loadOptions

(non-null [cast.framework.messages.LoadOptions](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages.LoadOptions) or undefined)

Added load options.

Inherited from
:   [cast.framework.messages.LoadRequestData#loadOptions](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages.LoadRequestData#loadOptions)

### media

non-null [cast.framework.messages.MediaInformation](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages.MediaInformation)

The media information associated with the load request.

Inherited from
:   [cast.framework.messages.LoadRequestData#media](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages.LoadRequestData#media)

### mediaSessionId

(number or undefined)

Id of the media session that the request applies to.

Inherited from
:   [cast.framework.messages.RequestData#mediaSessionId](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages.RequestData#mediaSessionId)

### playbackRate

(number or undefined)

The media playback rate.

Inherited from
:   [cast.framework.messages.LoadRequestData#playbackRate](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages.LoadRequestData#playbackRate)

### queueData

(non-null [cast.framework.messages.QueueData](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages.QueueData) or undefined)

Queue data.

Inherited from
:   [cast.framework.messages.LoadRequestData#queueData](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages.LoadRequestData#queueData)

### requestId

number

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

Inherited from
:   [cast.framework.messages.RequestData#requestId](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages.RequestData#requestId)

### sequenceNumber

(number or undefined)

A number to synchronize all queue commands.
If provided for a queue command, the SDK will verify the queue latest
sequence number match the request.
Current sequenceNumber is provided as part of outgoing queue changed
messages.

Inherited from
:   [cast.framework.messages.RequestData#sequenceNumber](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages.RequestData#sequenceNumber)