Class: QueueUpdateItemsRequest

  • QueueUpdateItemsRequest is used to update existing items within a media queue on a Cast receiver.

  • It allows updating properties of existing queue items, including custom data and media information, without changing their order.

  • Items not included in the request remain unchanged, and any non-existent items are ignored.

  • Track information for the currently playing item cannot be modified using this request.

  • The itemsToUpdate property is required and must contain an array of chrome.cast.media.QueueItem objects.

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.