seekToPosition

suspend fun seekToPosition(positionMs: Int, deviceId: String? = null): SpotifyApiResponse<Boolean>

Seeks playback to a position in milliseconds.

Return

Wrapped Spotify API response. data is true when Spotify accepted the operation.

Parameters

positionMs

Playback position in milliseconds.

deviceId

Spotify Connect device ID that should execute the playback action.