onAddQueueItem

abstract fun onAddQueueItem(player: Player, description: MediaDescriptionCompat)

Called when a media controller wants to add a queue item with the given description at the end of the play queue.

Parameters

player

The THEOplayer instance currently attached to the connector.

description

Metadata for a media item suitable for display.


abstract fun onAddQueueItem(player: Player, description: MediaDescriptionCompat, index: Int)

Called when a media controller wants to add a queue item with the given description at the specified position in the play queue

Parameters

player

The THEOplayer instance currently attached to the connector.

description

Metadata for a media item suitable for display.

index

The index at which the created queue item is to be inserted.