AI-generated Key Takeaways
-
A
QueueUpdateItemsRequest
is used to update properties of existing items in a media queue. -
The constructor
QueueUpdateItemsRequest(itemsToUpdate)
requires an array ofchrome.cast.media.QueueItem
objects to specify which items to update. -
Updating items replaces their existing properties entirely without reordering the queue.
-
The
customData
property allows including custom data for the receiver application in the request. -
The
items
property holds the list of queue items to be updated, which will fully replace the existing items including media information.
chrome.cast.media. QueueUpdateItemsRequest
A request to update properties of the existing items in the media queue.
Constructor
QueueUpdateItemsRequest
new QueueUpdateItemsRequest(itemsToUpdate)
Parameter |
|
---|---|
itemsToUpdate |
Array of non-null chrome.cast.media.QueueItem List of queue items to be updated. No reordering will happen, the items will retain the existing order and will be fully replaced with the ones provided, including the media information. The items not provided in this list will remain unchanged. The tracks information can not change once the item is loaded (if the item is the currentItem). If any of the items does not exist it will be ignored. 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
List of queue items to be updated. No reordering will happen, the items will retain the existing order and will be fully replaced with the ones provided, including the media information. The items not provided in this list will remain unchanged. The tracks information can not change once the item is loaded (if the item is the currentItem). If any of the items does not exist it will be ignored.