summaryrefslogtreecommitdiffstats
path: root/audio/test-audio
blob: 5553f0a5f1deab3b8b67350ca0dc253bb43da6dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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