upnext

v0.3.1
io.github.tothienbao6a0/upnext Checked 4 days ago Published 3 months ago

One audio queue across Spotify, the browser, local files and whatever is already playing.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

media_now

What is playing right now — including audio this machine is playing outside the queue, such as a browser tab.

media_queue

Show the queue, with the id of each entry.

media_enqueue

Add something to the queue. Accepts a link, a file path, a Spotify URI, or a plain description to be resolved later. Use position to play it next rather than last.

ParameterTypeDescription
item *stringA link, a file path, a spotify: URI, or a description
positionstring

media_play

Start or resume playback. With an id, plays that entry now. With nothing, resumes or starts the queue.

ParameterTypeDescription
idstring

media_pause

Pause playback.

media_next

Skip to the next entry.

media_seek

Jump to a position in the current track. Fails if the backend cannot seek.

ParameterTypeDescription
seconds *number

media_move

Reorder the queue. Both ids come from media_queue.

ParameterTypeDescription
id *stringthe entry to move
afterstringput it after this entry; omit to put it next

media_remove

Remove an entry from the queue, by id.

ParameterTypeDescription
id *string

media_adopt_current

Put whatever this machine is already playing — a browser tab, another app — into the queue, so your entries start when it finishes instead of cutting across it.

media_setup

What audio sources are wired here, and what they can do — including whether a plain description can be resolved.