A simple mythtv plugin to remote control MPD (Music Player Daemon).
This plugin is of no use to you without MPD.
- Display current playlist
- play/pause/stop
- jump to next/previous track
- Volume up/down and mute
- loading/management of playlists
- changing the current play queue
apt-get install qt5-default ccache g++ libmpdclient-dev mythmusic mythtv-frontend libmyth-dev
git clone git://github.com/tobser/mythmpc.git
cd mythmpc
./configure
make
sudo make install
To configure MPD host/port/password: Start the plugin and press the menu button on your remote.
Add a button to your library.xml menu (see the Menu theme development guide):
<button>
<type>MUSIC_PLAY</type>
<text>MythMpc MPD Client</text>
<description>Browse your MPD music library</description>
<action>PLUGIN mythmpc</action>
<depends>mythmpc</depends>
</button>
Assing a key on your remote to start mythmpc: Setup
->Edit Keys
->JumpPonts
->MPC
To immediatly enter mythmpc if mpd
is currently in playback you can use this shell script.
The script needs mpc
(apt-get install mpc
) to check the current playback state of mpd
#!/usr/bin/env bash
##
## checks the current state of mpd, if in playback mythmpc plugin is
## laoded, else mythfrontend starts with live tv playback
##
frontend="/usr/bin/mythfrontend"
mpc="/usr/bin/mpc"
mpd_state=`$mpc -h mpd_host_name -p 6600 |grep "\[.*\]" | sed 's/\[\(.*\)\].*/\1/'`
if [ "X$mpd_state" == "Xplaying" ]; then
($frontend --runplugin "mpc")
else
($frontend --jumppoint "Live TV")
fi