IOS/ iPhone bluetooth (a2dp, avrc, avct, ...) volume control not working?
Posted: Mon Jul 09, 2018 9:47 am
Hi guys,
I was playing with the a2dp_sink example to stream audio from an IOS device to esp. Streaming works fine (yay), but volume control does not, at least from my iPhone (IOS 11.4). When I change the volume using the hw buttons there is also no event triggered, at least I don't see it. When going all the way down to muted volume level, the audio is indeed muted. But this is because the phone sends just samples of 0.
I was playing with bluetooth audio before on linux and remember that volume changes can be over a2dp, avrc, avct, but I don't remember how it is implemented in iPhone. I played around with all the bluedroid stack files to see if I can somewhere catch a volume change event, but no luck.
Who has solved this already, or could point me in the direction how to capture volume change events?
Thanks!
I was playing with the a2dp_sink example to stream audio from an IOS device to esp. Streaming works fine (yay), but volume control does not, at least from my iPhone (IOS 11.4). When I change the volume using the hw buttons there is also no event triggered, at least I don't see it. When going all the way down to muted volume level, the audio is indeed muted. But this is because the phone sends just samples of 0.
I was playing with bluetooth audio before on linux and remember that volume changes can be over a2dp, avrc, avct, but I don't remember how it is implemented in iPhone. I played around with all the bluedroid stack files to see if I can somewhere catch a volume change event, but no luck.
Who has solved this already, or could point me in the direction how to capture volume change events?
Thanks!