reportPlayback

Reports playback timeline state for a song.

OpenSubsonic version: 1

OpenSubsonic extension name playbackReport (As returned by getOpenSubsonicExtensions)

http://your-server/rest/reportPlayback

Reports playback timeline state for a song. Clients should call the endpoint at least on each state change. The end point can be called every X seconds by clients, but servers should estimate current position based on playbackRate for up to date data between calls. Servers should not assume a media is played after the calculated end of content, but needs to wait for a stopped state. 30 minutes after the planned end of the media, servers should stop listening to events and clients should use the normal scrobble endpoint after reconnection from offline.

The starting state is an indicator that the player is starting (or restarting) the media, if the server support scrobble this is the indicator to start monitoring for this playback session even if it’s the same song. The server should only start moving it’s internal clock after the state changes to playing to take in account possible long buffering.

Parameters

ParameterReq.OpenS.DefaultComment
mediaIdYesYesThe ID of the media being reported.
mediaTypeYesYesEither song or podcast so the server knows what the mediaId is referring to.
positionMsYesYesThe playback position in milliseconds.
stateYesYesPlayback state: starting, playing, paused, or stopped.
playbackRateNoYes1.0Playback speed multiplier.
ignoreScrobbleNoYesfalseIf true, server should only update now-playing display/state and should not trigger scrobble/playcount side effects.

Example

Result

An empty subsonic-response element on success.

{
  "subsonic-response": {
    "status": "ok",
    "version": "1.16.1",
    "type": "AwesomeServerName",
    "serverVersion": "0.1.3 (tag)",
    "openSubsonic": true
  }
}
Does not exist.