Class SeekToPositionInCurrentlyPlayingTrackRequest


  • public class SeekToPositionInCurrentlyPlayingTrackRequest
    extends Object
    Seek To Position In Currently Playing Track request

    Required OAuth scopes

    user-modify-playback-state

    Response

    A completed request will return a 204 NO CONTENT response code, and then issue the command to the player. Due to the asynchronous nature of the issuance of the command, you should use the Get Information About The User's Current Playback endpoint to check that your issued command was handled correctly by the player.

    If the device is not found, the request will return 404 NOT FOUND response code.

    If the user making the request is non-premium, a 403 FORBIDDEN response code will be returned.

    • Constructor Detail

      • SeekToPositionInCurrentlyPlayingTrackRequest

        public SeekToPositionInCurrentlyPlayingTrackRequest​(ApiClient apiClient,
                                                            int positionMs)

        Seek To Position In Currently Playing Track request

        Parameters:
        apiClient -

        The API client

        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.