FastAPI <-> MPd player interface
Description: Plays playlist.
- Method: GET
- URL:
/play
Description: Pauses playing.
- Method: GET
- URL:
/pause
Description: Stops playing.
- Method: GET
- URL:
/stop
Description: Plays next song in playlist.
- Method: GET
- URL:
/next
Description: Sets volume to desired value.
- Method: GET
- URL:
/volume?volume=80
Description: Increases volume by 5.
- Method: GET
- URL:
/volup
Description: Decreases volume by 5.
- Method: GET
- URL:
/voldown
Clone this repo
git clone /~https://github.com/nejcmedved/mpd-webplayer.git
cd mpd-webplayer
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python mpd_webplayer.py
Edit mpd-webplayer.service to fit your installation needs
cp mpd-webplayer.service /lib/systemd/system
systemctl daemon-reload
systemctl start mpd-webplayer
systemctl enable mpd-webplayer