addItemToEndOfQueue

suspend fun addItemToEndOfQueue(uri: PlayableUri, deviceId: String? = null)

Add an item to the end of the user’s current playback queue. Please note that all items in the queue will be played before resuming the current playlist/album playing, if there is one.

This method is provided AS-IS until Spotify exposes device queue. Please consider managing the player queue within your application.

Requires the SpotifyScope.USER_MODIFY_PLAYBACK_STATE scope

Api Reference

Parameters

uri

The uri of the item to add to the queue. Must be a track or an episode uri.

deviceId

The device to play on.

Sources

common source
Link copied to clipboard