The hackerspace friendly MPD music player web client.
Features:
- Control multiple music players from one webinterface
- Support for MPD
- Support for Logitech SlimServer and SqueezeBoxes
- Track art
- Listen to web radio stations
- Search-as-you-type for tracks with highlighting
- File browser
- Album browser
- Queue random tracks when the playlist is empty.
- Mobile device friendly
- Free Open Source Software (GPLv3)
You can get the latest pre-built binary from the Github Releases.
Copy the example configuration to config.yaml, its
default location. If you want to use a custom location for the config file, you
should inform Trollibox by using the -conf
option. Like this:
trollibox -conf /etc/trollibox.yaml
Inside the configuration file, you will find some options you may need to change.
Clone the repository like you normally would. Make sure you have Go>1.18 installed along with NodeJS/NPM.
You can start Trollibox with processes to automatically recompile the source like this:
$ make dev -j2
space
: toggle playback>
: next track<
: previous track+
: increase volume-
: decrease volumeb
: seek backwards in the playing trackf
: seek forwards in the playing trackc
: clear the yet to be played part of the playlist1
: focus library search2
: focus album browser3
: focus genre/artist browser4
: focus file browser5
: focus streams library6
: focus auto queuer configuration7
: expand player
Tracks may be queued from the browser page using one of the views. Click on a track to append it to the queue.
An asterisk will be displayed next to tracks that have been queued by users. This feature originated at the Bitlair Hackerspace where tracks should not be skipped when they are queued by users.
If the queue runs out of tracks, Trollibox will pick a random track from the library and play it. The selection bias for tracks can be configured by setting one or more rules on the Queuer page.
Such rules consist of simple expressions that evaluate to a boolean value. A track must pass all rules set for it to be eligible for playing.
The equals
and contains
operations are case insensitive.
The matches
operation takes a regular expression in
Go's regexp format.
Trollibox has support for HTTP streams. You can create a custom collection using the Streams interface.
The search view allows you to search the whole library of the current player for tracks whose artist, title or album attributes contain some keywords.
Searching is case insensitive.
A track must match all keywords in order to end up in the results.
The search string is split on each space, unless you escape it with a
backslash: foo\ bar
.
You can annotate the keywords in your query to search other fields, You can limit a keyword to a single attribute by annotating them like this:
photographer genre:trance
The string photographer
will be applied to the default attributes while the
genre must match "trance".
Available attributes are:
- uri
- artist (default)
- title (default)
- genre
- album (default)
- albumartist
- albumtrack
- albumdisc
You can also use the duration
attribute with relational operators to filter
on whether a track's length is less, greater than or equal to some reference
integer.
duration<120
duration>120
duration=120
See Queueing Tracks.
There isn't. Trollibox is only a browser/player. Managing the files of the library is out of the scope of this project, which includes updating the player's database.
Using whatever options the player you are using is giving you. Trollibox is only a browser/player. You should manage your library in some other way.
The player is hidden on small screens to preserve space. The player is accessible on a separate view for such devices.