Class: QueueRemoveItemsRequest

  • chrome.cast.media.QueueRemoveItemsRequest is used to remove items from the media queue during a Cast session.

  • It requires an array of itemIds to specify which items should be removed.

  • If the queue becomes empty after removal, the media session will end.

  • Custom data can be included in the request for the receiver application.

Constructor

QueueRemoveItemsRequest

new QueueRemoveItemsRequest(itemIdsToRemove)

Parameter

itemIdsToRemove

Array of number

The list of media item IDs to remove. Must not be null or empty.

Value must not be null.

Properties

customData

nullable Object

Custom data for the receiver application.

itemIds

non-null Array of number

The list of media item IDs to remove. If any of the items does not exist it will be ignored. Duplicated item IDs will also be ignored. Must not be null or empty.