The Artima Developer Community
Sponsored Link

Web Buzz Forum
Controlling Banshee over D-Bus

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Stuart Langridge

Posts: 2006
Nickname: aquarius
Registered: Sep, 2003

Stuart Langridge is a web, JavaScript, and Python hacker, and sometimes all three at once.
Controlling Banshee over D-Bus Posted: Jul 1, 2008 5:12 PM
Reply to this message Reply

This post originated from an RSS feed registered with Web Buzz by Stuart Langridge.
Original Post: Controlling Banshee over D-Bus
Feed Title: as days pass by
Feed URL: http://feeds.feedburner.com/kryogenix
Feed Description: scratched tallies on the prison wall
Latest Web Buzz Posts
Latest Web Buzz Posts by Stuart Langridge
Latest Posts From as days pass by

Advertisement
I needed to be able to control Banshee from another application, and it turns out it has a lovely D-Bus API. Skip to the next song*: import dbus bus = dbus.SessionBus() banshee = bus.get_object("org.bansheeproject.Banshee", "/org/bansheeproject/Banshee/PlaybackController") banshee.Next(False) # use banshee.Previous(False) to skip back one song Start Banshee playing (this works even if Banshee isn’t running; D-Bus starts it up!): import dbus bus = [...]

Read: Controlling Banshee over D-Bus

Topic: How MySpace Gets Hacked + Protect Yourself From MySpace Hacking Previous Topic   Next Topic Topic: Beyond 404 @media/barcamp talk

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use