(In fact I think kagu already does: browsing the source I saw that it reacts to some dbus signals and a reference to this thread, so this should be generic for any media player)