Bug 165953

Summary: "nowplaying" applet: support for mpd (music player daemon)
Product: [Plasma] plasma4 Reporter: Jerome Quelin <jquelin>
Component: widget-nowplayingAssignee: Alex Merry <alex.merry>
Status: RESOLVED INTENTIONAL    
Severity: wishlist CC: alex.merry, dschridde+kde
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Mandriva RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Jerome Quelin 2008-07-07 18:23:33 UTC
Version:            (using KDE 4.0.83)
Installed from:    Mandriva RPMs

nowplaying applet display song currently playing on the computer. it supports various backend, such as amarok, juk, xmms.

i propose to add mpd (music player daemon, http://musicpd.org) as a source in nowplaying dataengine.
mpd being client-server based, it's easy to do so.

either connect to port 6600 and issue the command:

    currentsong

which will return all the wanted information on the song currently being played.


or even simpler, run the mpc command-line utility which is almost always installed when mpd is used:

    mpc --format "%album%\n%track%\n%artist%\n%title%"

and get the current song information on the 4 first lines.
Comment 1 Alex Merry 2009-05-31 13:15:51 UTC
Yes, I would like to do this.  It won't be until 4.4, though (4.3 is in feature freeze).
Comment 2 Jerome Quelin 2009-11-15 13:28:32 UTC
any news for this? i'm running kde 4.3.73 and applet "now playing" does not seem to connect to mpd.
Comment 3 Alex Merry 2012-05-17 10:23:31 UTC
I've made the decision that the only sensible approach for nowplaying is to only support MPRIS2-capable media players.  If you want MPD to work with it, you need some sort of "bridge".  See https://github.com/eonpatapon/mpDris2, for example.