seekRestAction

fun seekRestAction(positionMs: Long, deviceId: String? = null): SpotifyRestAction<Unit>

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

Requires the SpotifyScope.USER_MODIFY_PLAYBACK_STATE 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

Sources

common source
Link copied to clipboard