start Playback
suspend fun startPlayback(collection: CollectionUri? = null, offsetNum: Int? = null, offsetPlayableUri: PlayableUri? = null, deviceId: String? = null, playableUrisToPlay: List<PlayableUri> = emptyList())
Content copied to clipboard
Start or resume playback.
Note: You can only use one of the following: offsetNum or offsetPlayableUri
Specify nothing to play to simply resume playback
Requires the SpotifyScope.USER_MODIFY_PLAYBACK_STATE scope
Parameters
playableUrisToPlay
PlayableUri (Track or Local track URIs) uris to play. these are converted into URIs. Max 100
offsetNum
Indicates from where in the context playback should start. Only available when playableUrisToPlay is used.
offsetPlayableUri
Does the same as offsetNum but with a track/local track uri instead of place number
deviceId
The device to play on
Throws
if more than one type of play type is specified or the offset is illegal.
Sources
(source)
Link copied to clipboard