Re: [Banshee-List] Help with Banshee & D-Bus.



Cheers. I have been able to get this working fine on my laptop. Something funky was happening on my work computer so couldn't find out any info. For what it's worth here's how to do it:

To pause:
dbus-send --session --dest=org.gnome.Banshee --type=method_call --print-reply --reply-timeout=1000 /org/gnome/Banshee/Player org.gnome.Banshee.Core.Pause

To start playing again..
dbus-send --session --dest=org.gnome.Banshee --type=method_call --print-reply --reply-timeout=1000 /org/gnome/Banshee/Player org.gnome.Banshee.Core.Play

Thanks for your help.



On Thu, Mar 20, 2008 at 1:14 PM, Gabriel Burt <gabriel burt gmail com> wrote:
2008/3/18 Grant Murphy <grantcmurphy gmail com>:
> I would like to implement a bit of a hack to get banshee to pause/play when
> lock/unlock my screen. I am thinking I should be able to do this using the
> d-bus pretty easily..however have not been able to find out much info
> regarding how to work with dbus & banshee..If I listen to all signals
> emitted by the org.gnome.Banshee interface and play / pause (etc) tracks I
> don't seem be getting anything:
<snip>
> So I guess my question is what signal to I send to the Banshee interface to
> get the player to pause / play ?

Hi Grant,

Are you using the latest code from trunk (or 1.0 Alpha 1)?  This is
our latest release, but it is still under very active development, and
probably just doesn't yet have the DBus methods/events you need.  You
should be able to use d-feet or dbus-explorer to see what we are
currently exposing.  Please file bugs for methods we should have but
don't.

Good luck,

Gabriel

http://www.ndesk.org/DBusExplorer
https://hosted.fedoraproject.org/projects/d-feet/
http://bugzilla.gnome.org/enter_bug.cgi?product=banshee
_______________________________________________
Banshee-list mailing list
Banshee-list gnome org
http://mail.gnome.org/mailman/listinfo/banshee-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]