BT speaker working great on rPi Plexamp.
If my BT Speaker is connected to an iPhone the Speaker can control pause, play, next, however, when my BT Speaker is connected to the raspberry pi, while I can control via the plexamp App, I can’t control play, pause, next with the speaker.
Would that even be possible?
Edit: PiCorePlayer (LMS) does it, so I guess it is possible somehow…
Ok, I see now how it would work. Plexamp will pause, play and next when the button is pressed in the App or WebUi, so what would be needed is for rPi Plexamp to listen for the commands from the Bluetooth Speaker and act accordingly. Shouldn’t be too difficult. I understand that it’s not a priority, but hopefully you can put it somewhere on the list.
I also realize that most users of rPi Plexamp in this forum are using it to directly connect the audio via a HAT, but I believe that the ability to stream to a BT Speaker is awesome
MPRIS (Media Player Remote Interfacing Specification) is a standard D-Bus interface which aims to provide a common programmatic API for controlling media players.
It provides a mechanism for discovery, querying and basic playback control of compliant media players, as well as a track list interface which is used to add context to the active media item.
Plexamp already integrates with MPRIS (at least it does in the standard, non-headless Linux builds). Did you try configuring mpris-proxy per the article you linked? It may simply be a configuration thing on your pi, no dev work necessary
Yeah, that one. Follow the instructions on that page; install bluez-utils, run mpris-proxy, and then test your Bluetooth controls. If they work, you can configure a service file as documented to get mpris-proxy running on every boot
Yeah, didn’t work….
mpris-proxy does see the BT Speaker, but BT Controls don’t control plexamp
pi@pi4:~ $ mpris-proxy
org.bluez appeared
Bluetooth Adapter /org/bluez/hci0 found
Bluetooth Transport /org/bluez/hci0/dev_8C_85_80_BD_5C_19/fd15 found
But, if I use the Plexamp iPhone App, pair my iPhone to the BT Speaker, then the BT Speaker can control the App.
So, looks like there just needs to be something added to rPi Plexamp to get it to see the commands from the BT Device.
I found this code: GitHub - CDrummond/lms-btspeaker that controls the logitech LMS with mpris. Could this be adapted to work with rPi plexamp? I’m willing to give it a try, but maybe you could help me out in taking a look at that code.