Class: QueueLoadRequest

Constructor

QueueLoadRequest

new QueueLoadRequest(items)

Parameter

items

Array of non-null chrome.cast.media.QueueItem

The list of media items to load. Must not be null or empty.

Value must not be null.

Properties

customData

nullable Object

Custom data for the receiver application.

items

non-null Array of non-null chrome.cast.media.QueueItem

Array of items to load. It is sorted (first element will be played first). Must not be null or empty.

repeatMode

non-null chrome.cast.media.RepeatMode

The algorithm for selection of the next item when the current item has ended.

Default value
chrome.cast.media.RepeatMode.OFF

startIndex

number

The index of the item in the items array that must be the first currentItem (the item that will be played first). Note this is the index of the array (starts at 0) and not the itemId (as it is not known until the queue is created). If repeatMode is chrome.cast.media.RepeatMode.OFF playback will end when the last item in the array is played (elements before the startIndex will not be played). This may be useful for continuation scenarios where the user was already using the sender app and in the middle decides to cast. In this way the sender app does not need to map between the local and remote queue positions or saves one extra request to update the queue.

Default value
0