How to get AVRCP audio controls without stealing the Audio Source?
Posted: Sun Apr 17, 2022 4:07 am
Hello,
I would like to make a bluetooth audio controller for a smartphone. A self contained device with buttons with ESP32, where I can press the buttons and it controls the audio on a smartphone over classic bluetooth. The standard AVRCP controls are fine, play, pause, forward, volume.
I have been using. However in order to make AVRCP work, I need to use A2DP, and A2DP seems to "steal" the audio source itself - the audio gets sent from the phone to the device once its connected. I don't want this, the audio should stay on the phone, and after the device is connected to the phone via bluetooth, the device only controls Play, Pause, Volume, etc.
Is there a way of use so it does not steal the audio source, but sets up A2DP so I can call
My guess is its the SINK part thats the problem, but I don't know what A2DP library to use. I know this is possible because products exist, for example a little play pause controller for motorbike handlebars, that let you control audio playing on a smartphone.
I have been using this reference:
https://docs.espressif.com/projects/esp ... _a2dp.html#
thanks
I would like to make a bluetooth audio controller for a smartphone. A self contained device with buttons with ESP32, where I can press the buttons and it controls the audio on a smartphone over classic bluetooth. The standard AVRCP controls are fine, play, pause, forward, volume.
I have been using
Code: Select all
BluetoothA2DPSink
Is there a way of use
Code: Select all
BluetoothA2DPSink
Code: Select all
set_avrc_metadata_callback
I have been using this reference:
https://docs.espressif.com/projects/esp ... _a2dp.html#
thanks