1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-23 01:16:18 +00:00
supysonic/docs/jukebox.rst

46 lines
1.5 KiB
ReStructuredText
Raw Normal View History

2020-12-29 12:03:28 +00:00
Jukebox mode
============
The jukebox mode allow playing audio files on the hardware of the machine
2021-01-16 16:03:42 +00:00
running Supysonic, using regular clients that support it as a remote control.
2020-12-29 12:03:28 +00:00
2021-01-16 16:03:42 +00:00
:doc:`setup/daemon` must be running in order to be able to use the jukebox mode.
So be sure to start the :doc:`man/supysonic-daemon` command and keep it running.
2020-12-29 12:03:28 +00:00
Setting the player program
--------------------------
2021-01-16 16:03:42 +00:00
Jukebox mode in Supysonic works through the use of third-party command-line
programs. Supysonic isn't bundled with such programs, and you are left to
2020-12-29 12:03:28 +00:00
choose which one you want to use. The chosen program should be able to play a
single audio file from a path specified on its command-line.
The configuration is done in the :ref:`conf-daemon` of the configuration file,
with the ``jukebox_command`` variable. This variable should include the
following fields:
``%path``
absolute path of the file to be played
2021-01-17 11:29:37 +00:00
2020-12-29 12:03:28 +00:00
``%offset``
time in seconds where to start playing (used for seeking)
Here's an example using ``mplayer``::
jukebox_command = mplayer -ss %offset %path
Or using ``mpv``::
jukebox_command = mpv --start=%offset %path
Setting the output volume isn't currently supported.
Allowing users to act on the jukebox
------------------------------------
The jukebox mode is only accessible to chosen users. Granting (or revoking)
2021-01-03 15:34:29 +00:00
jukebox usage rights to a specific user is done with the
:doc:`command line interface <man/supysonic-cli-user>`::
2020-12-29 12:03:28 +00:00
$ supysonic-cli user setroles --jukebox <username>