GNOME Bugzilla – Bug 588430
how can I get current playing song info through dbus
Last modified: 2009-07-16 01:27:51 UTC
This may be not a bug... :) I using banshee 1.4.3 dbus name = org.bansheeproject.Banshee , path = /org/bansheeproject/Banshee/PlayerEngine has some properties named 'CurrentUri','Length' etc. but has no org.freedesktop.DBus.Properties ? then how can I get this information through dbus-send command? thanks!
The PlayerEngine interface has a property named CurrentTrack that gives all the information about the current track in a dictionary of {String, Variant}. For example, the following command (on one line) prints out all the info about the current track : dbus-send --print-reply --type=method_call --dest=org.bansheeproject.Banshee /org/bansheeproject/Banshee/PlayerEngine org.bansheeproject.Banshee.PlayerEngine.GetCurrentTrack
If you have further questions about this, please ask on the mailing list : http://mail.gnome.org/mailman/listinfo/banshee-list
It works~ very thanks!