2024-11-18, 03:34
Hello. I hope this is the appropriate place for asking about the possible existence of an addon:
Is there an addon that can send Bluetooth commands (e.g. Play/Pause) to a connected Bluetooth audio source? It can be done (e.g. in CLI) by communicating with bluez over d-bus. Reading track titles can also be done, although some heuristics would be necessary there to determine which device to communicate with since it's not Kodi but the OS that handles the actual incoming audio stream.
Because of the above I'm imagining that it would be possible to both display Bluetooth audio meta data in Kodi's player interface as well as sending Bluetooth commands from within an addon, but has anyone actually done this?
I looked through most sections in the official Kodi addon repo for something like this but couldn't find anything.
A use case would be, for instance, when the Kodi machine is connected to one Bluetooth speaker and one audio source, that the Play/Pause button on the speaker could control the audio source (not to mention the space bar on the Kodi machine itself).
Unfortunately, some setups require incoming media control events to be exclusively handled by Kodi, which is why I think forwarding these events to a Bluetooth audio source would be best handled inside Kodi. At least I have never been able to make these events work reliably in Kodi in coexistence with Gnome desktop/rest of the system.
Displaying the track title is a bonus, but valuable in itself.
Is there an addon that can send Bluetooth commands (e.g. Play/Pause) to a connected Bluetooth audio source? It can be done (e.g. in CLI) by communicating with bluez over d-bus. Reading track titles can also be done, although some heuristics would be necessary there to determine which device to communicate with since it's not Kodi but the OS that handles the actual incoming audio stream.
Because of the above I'm imagining that it would be possible to both display Bluetooth audio meta data in Kodi's player interface as well as sending Bluetooth commands from within an addon, but has anyone actually done this?
I looked through most sections in the official Kodi addon repo for something like this but couldn't find anything.
A use case would be, for instance, when the Kodi machine is connected to one Bluetooth speaker and one audio source, that the Play/Pause button on the speaker could control the audio source (not to mention the space bar on the Kodi machine itself).
Unfortunately, some setups require incoming media control events to be exclusively handled by Kodi, which is why I think forwarding these events to a Bluetooth audio source would be best handled inside Kodi. At least I have never been able to make these events work reliably in Kodi in coexistence with Gnome desktop/rest of the system.
Displaying the track title is a bonus, but valuable in itself.