-
Notifications
You must be signed in to change notification settings - Fork 0
Web Methods Queue
These methods inspect and manipulate the current playlist and playback status.
- Queue Query Methods
- Playlist Manipulation Methods
- Queue Manipulation Methods
- Queue Status Manipulation Methods
queueList()
Get a list of songs in the play queue.
Example Usage
code
xml = XMLRPC.queueList()
json = JSONRPC2('queueList', [])
result
[
{
"album": "Frieden",
"artist": "Extrabreit",
"track": "12/13",
"title": "Sch\u00f6nes Lied",
"disc": null,
"file": "Misc/lied.mp3",
"time": 195,
"id": 23
},
{
...
},
...
]
queueCurrent()
Get the currently playing song.
Example Usage
code
xml = XMLRPC.queueCurrent()
json = JSONRPC2('queueCurrent', [])
result
{
"album": "Frieden",
"artist": "Extrabreit",
"track": "12/13",
"title": "Sch\u00f6nes Lied",
"disc": null,
"file": "Misc/lied.mp3",
"time": 195,
"id": 23
}
queueStatus()
Get the general playback status.
Example Usage
code
xml = XMLRPC.queueStatus()
json = JSONRPC2('queueStatus', [])
result
{
"voluem": 14,
"mixrampdb": 0.0,
"repeat": true,
"consume": false,
"random": false,
"state": "stop",
"xfade": 0.0,
"playlistlength": 29,
"single": false,
"mixrampdelay": NaN,
"audio": "44100:24:2",
"bitrate": 128
}
queueLoad(name)
Load the playlist name into the play queue. If the queue is currently playing playback will continue according to set playback modifiers.
Example Usage
code
xml = XMLRPC.queueLoad("Lied")
json = JSONRPC2('queueLoad', ['Lied'])
result
[
{
"album": "Frieden",
"artist": "Extrabreit",
"track": "12/13",
"title": "Sch\u00f6nes Lied",
"disc": null,
"file": "Misc/lied.mp3",
"time": 195,
"id": 23
},
{
...
},
...
]
queueSave(name)
Save play queue as playlist name. Will overwrite playlist name if it already exists.
Example Usage
code
xml = XMLRPC.queueSave("Lied")
json = JSONRPC2('queueSave', ['Lied'])
result
null
queueAdd(path)
Add the contents of path to the end of the play queue.
queueAdd(path, position)
Add the contents of path to the play queue at position.
Example Usage
code
xml = XMLRPC.queueAdd("Misc/lied.mp3")
json = JSONRPC2('queueAdd', ['Misc/lied.mp3'])
result
[
...,
{
...
},
{
"album": "Frieden",
"artist": "Extrabreit",
"track": "12/13",
"title": "Sch\u00f6nes Lied",
"disc": null,
"file": "Misc/lied.mp3",
"time": 195,
"id": 23
}
]
code
xml = XMLRPC.queueLoad("Misc/lied.mp3", 0)
json = JSONRPC2('queueLoad', ['Misc/lied.mp3', 0])
result
[
{
"album": "Frieden",
"artist": "Extrabreit",
"track": "12/13",
"title": "Sch\u00f6nes Lied",
"disc": null,
"file": "Misc/lied.mp3",
"time": 195,
"id": 23
},
{
...
},
...
]
queueClear()
Remove all songs from the play queue. Will stop playback if currently playing.
Example Usage
code
xml = XMLRPC.queueClear()
json = JSONRPC2('queueClear', [])
result
[]
queueMove(songid, position)
Move song with id songid to position in the play queue.
Example Usage
code
xml = XMLRPC.queueMove(23, 4)
json = JSONRPC2('queueMove', [23, 4])
result
[
{ ... },
{ ... },
{ ... },
{
"album": "Frieden",
"artist": "Extrabreit",
"track": "12/13",
"title": "Sch\u00f6nes Lied",
"disc": null,
"file": "Misc/lied.mp3",
"time": 195,
"id": 23
},
{
...
},
...
]
queueNext()
Advance the play queue by one song and return the now playing song. If the play queue is not playing it will also start playback.
Example Usage
code
xml = XMLRPC.queueNext()
json = JSONRPC2('queueNext', [])
result
{
"album": "Frieden",
"artist": "Extrabreit",
"track": "12/13",
"title": "Sch\u00f6nes Lied",
"disc": null,
"file": "Misc/lied.mp3",
"time": 195,
"id": 23
}
queuePrev()
Rewind the play queue by one song and return the now playing song. If the play queue is not playing it will also start playback.
Example Usage
code
xml = XMLRPC.queuePrev()
json = JSONRPC2('queuePrev', [])
result
{
"album": "Frieden",
"artist": "Extrabreit",
"track": "12/13",
"title": "Sch\u00f6nes Lied",
"disc": null,
"file": "Misc/lied.mp3",
"time": 195,
"id": 23
}
queueRandomize()
Randomly reorder the songs in the play queue. This is not the same as queueRandom which affects playback order.
Example Usage
code
xml = XMLRPC.queueRandomize()
json = JSONRPC2('queueRandomize', [])
result
[
{
"album": "Frieden",
"artist": "Extrabreit",
"track": "12/13",
"title": "Sch\u00f6nes Lied",
"disc": null,
"file": "Misc/lied.mp3",
"time": 195,
"id": 23
},
{
...
},
...
]
queueRemove(songid)
Remove song with id songid from the play queue.
Example Usage
code
xml = XMLRPC.queueRemove(23)
json = JSONRPC2('queueRemove', [23])
result
[
{
...
},
{
...
},
...
]
queueReplace(path)
Replace the contents of the play queue with the contents of path. If the queue is playing playback will continue according to set playback modifiers.
Example Usage
code
xml = XMLRPC.queueReplace('Misc/lied.mp3')
json = JSONRPC2('queueReplace', ['Misc/lied.mp3'])
result
[
{
"album": "Frieden",
"artist": "Extrabreit",
"track": "12/13",
"title": "Sch\u00f6nes Lied",
"disc": null,
"file": "Misc/lied.mp3",
"time": 195,
"id": 23
}
]
queueConsume()
Get the queue consume mode.
queueConsume(mode)
Set the queue consume mode to mode. If the queue is in consume mode songs will be removed from the queue once they are played.
Example Usage
code
xml = XMLRPC.queueConsume()
json = JSONRPC2('queueConsume', [])
result
false
Example Usage
code
xml = XMLRPC.queueConsume(True)
json = JSONRPC2('queueConsume', [True])
result
true
queueCrossfade()
Get the playback crossfade length.
queueCrossfade(length)
Set the queue crossfade length to length.
Example Usage
code
xml = XMLRPC.queueCrossfade()
json = JSONRPC2('queueCrossfade', [])
result
0.0
Example Usage
code
xml = XMLRPC.queueCrossfade(1.5)
json = JSONRPC2('queueCrossfade', [1.5])
result
1.5
queueMixrampdB()
Get the Mixramp volume adjust decibel level.
queueMixrampdB(decibels)
Set the Mixramp volume adjust decibel level to decibels.
Example Usage
code
xml = XMLRPC.queueMixrampdB()
json = JSONRPC2('queueMixrampdB', [])
result
0.0
Example Usage
code
xml = XMLRPC.queueMixrampdB(1.5)
json = JSONRPC2('queuemixrampdB', [1.5])
result
1.5
queueMixrampDelay()
Get the Mixramp volume adjust delay time.
queueMixrampDelay(delay)
Set the Mixramp volume adjust delay time to delay
Example Usage
code
xml = XMLRPC.queueMixrampDelay()
json = JSONRPC2('queueMixrampDelay', [])
result
NaN
Example Usage
code
xml = XMLRPC.queueMixrampDelay(.75)
json = JSONRPC2('queueMixrampDelay', [.75])
result
0.75
queuePause()
Pause playback of the play queue. Will nave no effect if the queue is not currently playing.
Example Usage
code
xml = XMLRPC.queuePause()
json = JSONRPC2('queuePause', [])
result
{
"album": "Frieden",
"artist": "Extrabreit",
"track": "12/13",
"title": "Sch\u00f6nes Lied",
"disc": null,
"file": "Misc/lied.mp3",
"time": 195,
"id": 23
}
queuePlay()
Start playback of the play queue. Will have no effect if the play queue is empty.
queuePlay(position)
Start playback of the play queue at position. Will raise an error if the position is invalid.
Example Usage
code
xml = XMLRPC.queuePlay()
json = JSONRPC2('queuePlay', [])
result
{
"album": "Frieden",
"artist": "Extrabreit",
"track": "12/13",
"title": "Sch\u00f6nes Lied",
"disc": null,
"file": "Misc/lied.mp3",
"time": 195,
"id": 23
}
Example Usage
code
xml = XMLRPC.queuePlay(20)
json = JSONRPC2('queuePlay', [20])
result
{
"album": "Frieden",
"artist": "Extrabreit",
"track": "12/13",
"title": "Sch\u00f6nes Lied",
"disc": null,
"file": "Misc/lied.mp3",
"time": 195,
"id": 23
}
queueRandom()
Get the queue randomize order mode.
queueRandom(mode)
Set the queue randomize order mode to mode. If queue is in randomize mode the next song will be chosen at random from the queue. This is different from queueRandomize which shuffles the order of songs in the queue.
Example Usage
code
xml = XMLRPC.queueRandom()
json = JSONRPC2('queueRandom', [])
result
false
Example Usage
code
xml = XMLRPC.queueRandom(True)
json = JSONRPC2('queueRandom', [True])
result
true
queueRepeat()
Get the queue repeat mode.
queueRepeat(mode)
Set the queue repeat mode to mode. In repeat mode the play queue will loop back to beginning on completion, if single mode is also active the current song will be continuously looped.
Example Usage
code
xml = XMLRPC.queueRepeat()
json = JSONRPC2('queueRepeat', [])
result
false
Example Usage
code
xml = XMLRPC.queueRepeat(True)
json = JSONRPC2('queueRepeat', [True])
result
true
queueSingle()
Get the queue single song mode.
queueSingle(mode)
Set the queue single song mode to mode. If queue is in single song mode the queue will not advance to the next song once the current song is complete. This can be used with repeat to continuously loop a single song.
Example Usage
code
xml = XMLRPC.queueSingle()
json = JSONRPC2('queueSingle', [])
result
false
Example Usage
code
xml = XMLRPC.queueSingle(True)
json = JSONRPC2('queueSingle', [True])
result
true
queueStop()
Stop playback of the play queue and seek to 0:00 in current song.
Example Usage
code
xml = XMLRPC.queueStop()
json = JSONRPC2('queueStop', [])
result
{
"album": "Frieden",
"artist": "Extrabreit",
"track": "12/13",
"title": "Sch\u00f6nes Lied",
"disc": null,
"file": "Misc/lied.mp3",
"time": 195,
"id": 23
}
queueToggle()
Start playback if not currently playing, else pause playback.
Example Usage
code
xml = XMLRPC.queueToggle()
json = JSONRPC2('queueToggle', [])
result
{
"album": "Frieden",
"artist": "Extrabreit",
"track": "12/13",
"title": "Sch\u00f6nes Lied",
"disc": null,
"file": "Misc/lied.mp3",
"time": 195,
"id": 23
}
queueVolume()
Get the volume of playback output.
queueVolume(volume)
Set the volume of playback output to volume
Example Usage
code
xml = XMLRPC.queueVolume()
json = JSONRPC2('queueVolume', [])
result
14
Example Usage
code
xml = XMLRPC.queueVolume(72)
json = JSONRPC2('queueVolume', [72])
result
72