Play/Pause event in A2DP source mode #299
-
Hi, i have a connected a kids headphone and can play audio from SD successfully. This is my minimal sample: Now the headphone has a button for play/pause. Is it possible to get an event so that i can react on it for pausing/playing audio? Found nothing about in wiki/issues |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 11 replies
-
Just set the log level to debug to see what method gets called when you trigger the events and then you can create your subclass and overwrite the method as explained in https://github.com/pschatzmann/ESP32-A2DP/wiki/Design-Overview |
Beta Was this translation helpful? Give feedback.
-
I guess you also need to overwrite the bt_av_hdl_stack_evt to activate some more events:
After this you should be notified ... |
Beta Was this translation helpful? Give feedback.
-
Hi Phil! I created a subclass and I'm trying to detect any AVRC event whatsoever. I see nothing. I've tried two devices and no change (including volume) is ever detected. Could you give any hint as to the best place and method to log any AVRC event? I see that you call
If that's not the place, where would be the best place to catch any event? Thank you, Chad |
Beta Was this translation helpful? Give feedback.
-
Just set the log level to Debug and trigger some commands and you should be able to see what methods are called. |
Beta Was this translation helpful? Give feedback.
-
Hi, not sure if i have the same question, but i'm using a teensy to send start/stop which works fine for me. Unfortunatley i don't have information if play/pause is toggled on my mobile phone (want to show that information on teensy) Any recommendations? |
Beta Was this translation helpful? Give feedback.
Just set the log level to Debug and trigger some commands and you should be able to see what methods are called.
I would expect that it is av_hdl_stack_evt