degeron / qmmp

Automatically exported from code.google.com/p/qmmp
0 stars 0 forks source link

question about dbus interface #75

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
How can I get the "title" info from python-dbus interface?

>>> import dbus                                                       
>>> bus=dbus.SessionBus()
>>> proxy_obj = bus.get_object("org.qmmp.dbus",'/Qmmp')
>>> iface = dbus.Interface(proxy_obj, 'org.qmmp.dbus')
>>> iface.title
<dbus.proxies._ProxyMethod instance at 0x7fbcb7e6e3f8>
>>> iface.title()
Traceback (most recent call last):
..
..
Thank you.

Original issue reported on code.google.com by xuji...@gmail.com on 6 Apr 2009 at 3:02

GoogleCodeExporter commented 9 years ago
dbus plugin is deprecated. Recent svn version supports dbus-based mpris protocol
http://wiki.xmms2.xmms.se/wiki/MPRIS. So, you can use this script
http://incise.org/mpris-remote.html as example.

Original comment by trialuser02 on 8 Apr 2009 at 7:47

GoogleCodeExporter commented 9 years ago
Thank you, I'v already solved this problem

BTW, would you take a look at this
http://www.sanfanling.cn/svn/lrcShow-X/branches/frank/lrcShow-X/, now qmmp is 
well
supported. If someone could help me to develop a plugin to launch lrcShow-X, it 
would
be great.

Original comment by xuji...@gmail.com on 9 Apr 2009 at 12:57

GoogleCodeExporter commented 9 years ago

Original comment by trialuser02 on 25 Apr 2011 at 12:33