Now Playing

Update the server with the client player state

Changed on

Inform the server about the state of your client. (Song you are playing, Play/Pause state, etc.)

post/videos/{video_id}/playback

Request

  • Base URL
    https://develop.ampache.dev/rest/8/json
  • URL
    https://develop.ampache.dev/rest/8/json/videos/{video_id}/playback
  • Auth
    • HTTP bearer
    • or API key in header auth
    • or API key in query parameter auth

Path parameters

video_idstring required

Unique identifier of the video.

Query parameters

type'song' | 'video' | 'podcast_episode'
state'play' | 'pause' | 'stop'
timeinteger
clientstring

Client/agent name recorded with the request.

Request body

type'song' | 'video' | 'podcast_episode'
state'play' | 'pause' | 'stop'
timeinteger
clientstring

Client/agent name recorded with the request.

Response

Now playing response

Changes

    • info

      added the new enum value pause to the query request parameter state

    • info

      added the new pause enum value to the request property (media type: application/json)

    • info

      added the new pause enum value to the request property (media type: application/x-www-form-urlencoded)

    • info

      api operation id playerVideosPlayback was added

    • info

      added optional request body

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status