AI-generated Key Takeaways
-
The
chrome.cast.media.QueueDataclass is used to provide queue information as part of a LOAD request. -
It can be constructed with parameters including ID, name, description, repeat mode, items, start index, and start time.
-
The class has properties like
containerMetadata,entity,items,queueType, andshufflethat describe the queue's content and behavior.
chrome.
cast
.
media
.
QueueData
Queue data as part of the LOAD request.
Constructor
QueueData
new QueueData(id, name, description, repeatMode, items, startIndex, startTime)
Parameter
id
Optional
string
ID of the queue.
name
Optional
string
Name of the queue.
description
Optional
string
Description of the queue.
repeatMode
items
Optional
Array of non-null chrome.cast.media.QueueItem
The queue items associated with the queue which can often be omitted for a cloud queue or a receiver implemented queue.
Value must not be null.
startIndex
Optional
number
The index of the item in the queue that should be used to start playback first.
startTime
Optional
number
Seconds (since the beginning of content) to start playback of the first item.
Properties
containerMetadata
(non-null chrome.cast.media.ContainerMetadata or undefined)
Metadata to describe the queue content, and optionally media sections.
description
(string or undefined)
Description of the queue.
entity
(string or undefined)
Optional Queue entity ID, provide Google Assistant deep link.
id
(string or undefined)
ID of the queue.
items
(non-null Array of non-null chrome.cast.media.QueueItem or undefined)
Array of queue items. It is sorted (first element will be played first).
name
(string or undefined)
Name of the queue.
queueType
(non-null chrome.cast.media.QueueType or undefined)
Queue type, e.g. album, playlist, radio station, tv series, etc.
repeatMode
(non-null chrome.cast.media.RepeatMode or undefined)
Continuous playback behavior of the queue.
shuffle
(boolean or undefined)
Indicate if the queue is shuffled.
startIndex
(number or undefined)
The index of the item in the queue that should be used to start playback first.
startTime
(number or undefined)
Seconds (since the beginning of content) to start playback of the first item.

