Skip to content

players.txt

project-owner edited this page Nov 5, 2022 · 7 revisions

This configuration file should be updated whenever audio player (mpd, mpvor vlc) has been installed. The proper folder should be defined in the corresponding section of the players.txt file.

audio

This section defines which audio player will be used by Peppy Player. Three different players are currently supported and can be defined in property player.name: mpd, mpv and vlc. Only one player name can be defined at a time.

[audio]
player.name = vlc
music.folder.linux = /music
music.folder.windows = C:\music

The property music.folder is required for 'mpd' player. It should be the same as defined in mpd.conf file e.g. C:\music. It's not required for mpv and vlc and can be left blank.

This following sections define the information specific for each player. It includes folder name where audio player is located, command used to start the player and Peppy Player client name used for communication with audio player.

mpd.linux

[mpd.linux]
server.folder = /usr/bin
server.start.command = mpd
client.name = mpdsocket
server.stop.command = None

mpd.windows

[mpd.windows]
server.folder = C:\mpd-0.20.19\bin
server.start.command = mpd mpd.conf
client.name = mpdsocket
server.stop.command = None

vlc.linux

[vlc.linux] 
server.start.command = --aout=alsa --alsa-audio-device=default --verbose=-1
client.name = vlcclient
stream.server.parameters = sout=#transcode{acodec=flac}:std{access=http,mux=flac,dst=:8080}
server.stop.command = None

vlc.windows

[vlc.windows]
server.start.command = --verbose=-1
client.name = vlcclient
stream.server.parameters = sout=#transcode{acodec=flac}:std{access=http,mux=flac,dst=:8080}
server.stop.command = None

mpv.linux

server.start.command = {"audio-device": "alsa/default", "video": false}
client.name = mpvclient
server.stop.command = None

mpv.windows

server.start.command = {"audio-device": "auto", "video": false}
client.name = mpvclient
server.stop.command = None

shairport-sync.linux

[shairport-sync.linux]
server.start.command = sudo systemctl start shairport-sync
server.stop.command = sudo systemctl stop shairport-sync
client.name = shairport

raspotify.linux

[raspotify.linux]
server.start.command = sudo systemctl start raspotify
server.stop.command = sudo systemctl stop raspotify
client.name = raspotify

bluetooth-sink.linux

[bluetooth-sink.linux]
server.start.command = bluealsa-aplay 00:00:00:00:00:00
server.stop.command = sudo killall bluealsa-aplay
client.name = bluetoothsink

bluetooth-sink.windows

server.start.command = bluealsa-aplay 00:00:00:00:00:00
server.stop.command = sudo killall bluealsa-aplay
client.name = bluetoothsink

<<Previous | Next>>

Contents

Clone this wiki locally