rPi Plexamp BT Speaker, control pause, play, next

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…

Anything is possible, given infinite time. Probably not a priority to figure this one out, sorry :sweat_smile:

An enterprising hacker could probably figure it out and just map the BT commands to http requests to localhost.

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 :sunglasses:

Hopefully an enterprising dev in here has the same desire as you :grimacing:

I know there’s a general Feature Suggestion Section, but is there one for Plex Labs?

Doing a little research and found:
https://wiki.archlinux.org/title/MPRIS#Bluetooth

Looks like this could be added to Plex / Plexamp

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 :sweat_smile:

Are you referring to the mpris-proxy.service?
Or is there another config I missed?

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 :slightly_smiling_face:

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.

Any chance you can get this to work on the plexamp headless raspberry pi?

The MPRIS support is inside the electron linux app, not the headless version, sorry.

1 Like

Can MPRIS support be added in a future update to the headless plexamp?

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.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.