This project consists of a Rhythmbox plugin which adds support for DBus signals of the interface "org.freedesktop.MediaPlayer" with some extensions.
Generates the following signals on DBus from the "interface=org.freedesktop.MediaPlayer":
This signal is supported by Amarok (and probably others) already. The following is emitted whenever the current playing track is changed.
- Path: /Player
- Member: TrackChange
- sig: a{sv}
- "album", "artist", "title", "tracknumber", "genre", "location", "duration", "mtime", "last-seen", "last-played", "rating", "playcount"
- sig: a{sv}
- Member: TrackChange
Extension: The parameters "playcount", "last-seen" and "last-played" are added to the output dictionary (array). Listeners on the signal should be sufficiently flexible as to ignore the parameters which they cannot interpret.
The rating of the currently playing track can be changed using the following signal:
- Path: /Player
- Member: RateCurrentPlaying
- sig: "v" ( a float rating value either in string or float format representation )
- Member: RateCurrentPlaying
This section details extensions to the MediaPlayer protocol.
The following signal is emitted whenever the details for a track is changed by the user.
- Path: /Track
- Member: Details
- sig: a{sv}
- "album", "artist", "title", "tracknumber", "genre", "location", "duration", "mtime", "last-seen", "last-played", "rating", "playcount"
- sig: a{sv}
- Member: Details
There are 2 methods:
-
Use the Ubuntu Debian repository jldupont with the package "rbsynclastfm"
-
Use the "Download Source" function of this git repo and use "sudo make install"
- DBus python bindings
Integration of more signals ( check-out the Totem mpris plugin )