Methods

getCurrentItem

getCurrentItem() returns cast.receiver.media.QueueItem

Gets the current queue item.

Returns

nullable cast.receiver.media.QueueItem The current item.

getCurrentItemId

getCurrentItemId() returns (number or undefined)

Gets the ID of the current queue item.

Returns

(number or undefined) The current itemId or undefined if not found.

getItems

getItems(opt_includeMedia) returns Array of non-null cast.receiver.media.QueueItem

Gets the items in the queue.

Parameter

opt_includeMedia

Optional

boolean

Whether to include the media information with each item. It is included by default.

Returns

non-null Array of non-null cast.receiver.media.QueueItem The queue items.

getLength

getLength() returns number

Gets the number of items in the queue.

Returns

number The number of items in the queue.

getRepeatMode

getRepeatMode() returns cast.receiver.media.RepeatMode

Gets the queue repeat mode (the behavior of the queue when all items have been played).

Returns

non-null cast.receiver.media.RepeatMode The behavior of the queue when all items have been played.