We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 228a802 commit 2ed6dfdCopy full SHA for 2ed6dfd
bluemedia.py
@@ -5,6 +5,7 @@
5
6
class BluetoothMediaController(dbus.service.Object):
7
def __init__(self, device_address):
8
+ dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
9
dbus.service.Object.__init__(self, dbus.SystemBus(), "/org/bluez")
10
self.bus = dbus.SystemBus()
11
self.device_path = f"/org/bluez/hci0/dev_{device_address.replace(':', '_')}"
@@ -58,8 +59,7 @@ def _get_player_interface(self):
58
59
60
61
if __name__ == "__main__":
- dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
62
- device_address = '90:8C:43:40:14:F4'
+ device_address = '00:00:00:00:00:00'
63
controller = BluetoothMediaController(device_address)
64
loop = GLib.MainLoop()
65
0 commit comments