seek

suspend fun seek(positionMs: Long, deviceId: String? = null)(source)

Seeks to the given position in the user’s currently playing track.

Requires the SpotifyScope.UserModifyPlaybackState scope

Api Reference

Parameters

positionMs

The position in milliseconds to seek to. Must be a positive number. Passing in a position that is greater than the length of the track will cause the player to start playing the next song.

deviceId

The device to play on