seekToPosition

suspend fun seekToPosition(positionMs: Int, deviceId: String? = null): HttpStatusCode(source)

Seek to a specific position in the user's playback

Return

HttpStatusCode.NoContent if the request succeeded, HttpStatusCode.NotFound if the device was not found, HttpStatusCode.Forbidden if the user is non-premium

Parameters

positionMs

The position in milliseconds. Must be positive, if it is greater than the songs length, the player will skip to the next song.

deviceId

The device ID, if not provided, the user's current active device is targeted