diff options
Diffstat (limited to 'audio/test-audio')
-rwxr-xr-x | audio/test-audio | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/audio/test-audio b/audio/test-audio new file mode 100755 index 00000000..5553f0a5 --- /dev/null +++ b/audio/test-audio @@ -0,0 +1,19 @@ +#!/usr/bin/python + +import dbus + +bus = dbus.SystemBus() + +manager = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'), + 'org.bluez.Manager') + +conn = manager.ActivateService('audio') + +audio = dbus.Interface(bus.get_object(conn, '/org/bluez/audio'), + 'org.bluez.audio.Manager') + +try: + headset = dbus.Interface(bus.get_object(conn, audio.DefaultHeadset()), + 'org.bluez.audio.Headset') +except: + pass |