jukeboxControl
Controls the jukebox, i.e., playback directly on the server’s audio hardware.
Categories:
http://your-server/rest/jukeboxControl Since 1.2.0
Controls the jukebox, i.e., playback directly on the server’s audio hardware. Note: The user must be authorized to control the jukebox (see Settings > Users > User is allowed to play files in jukebox mode).
Parameters
| Parameter | Req. | OpenS. | Default | Comment |
|---|---|---|---|---|
action |
Yes | The operation to perform. Must be one of: get, status (since 1.7.0), set (since 1.7.0), start, stop, skip, add, clear, remove, shuffle, setGain |
||
index |
No | Used by skip and remove. Zero-based index of the song to skip to or remove. |
||
offset |
No | (Since 1.7.0) Used by skip. Start playing this many seconds into the track. |
||
id |
No | Used by add and set. ID of song to add to the jukebox playlist. Use multiple id parameters to add many songs in the same request. (set is similar to a clear followed by a add, but will not change the currently playing track.) |
||
gain |
No | Used by setGain to control the playback volume. A float value between 0.0 and 1.0. |
Example
http://your-server/rest/jukeboxControl.view?action=get&u=demo&p=demo&v=1.13.0&c=AwesomeClientName&f=json
Result
A subsonic-response element with a nested :
jukeboxStatusfor all actions butgetjukeboxPlaylistforgetaction
// TODO// TODO| Field | Type | Req. | OpenS. | Details |
|---|---|---|---|---|
jukeboxStatus |
jukeboxstatus |
Yes | The jukeboxstatus | |
jukeboxPlaylist |
jukeboxPlaylist |
Yes | The jukeboxstatus |
Last modified March 31, 2023: Remove "Reference" level (0e00cdd)