nicokaiser / rpi-audio-receiver

Raspberry Pi Audio Receiver with Bluetooth A2DP, AirPlay 2, and Spotify Connect
MIT License
1.39k stars 148 forks source link

further integration to control sender device #75

Closed Thomas-GeDaD closed 2 years ago

Thomas-GeDaD commented 4 years ago

Hi, is there a way to control the sender device via the reciever? I want to intigrate the reciever in an marine aplication and want to control the sending device through a nmea2000 conection. So is it possible to connect so that it is possible to get control for next track, track back, pause, stop, start and so on?? Further get the track list?

nicokaiser commented 4 years ago

I'm not sure if this is possible with BlueZ... at least it is not in the default configuration.

To control the device, AVRCP is needed (currently this project only supports A2DP as it is built to be a "dumb" audio receiver with no buttons etc.).

You could try to play with the BlueZ 5 D-Bus interface, as mentioned here: https://askubuntu.com/questions/591995/avrcp-with-bluez-how-to-control-audio-on-a-phone-from-ubuntu or here https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/media-api.txt

nicokaiser commented 2 years ago

Closing this since we need to move to PulseAudio (Debian 11 / Raspberry Pi OS 11).