I am building a web app where i detect the headphones button event. I succeeded in capturing headphones button event when they are plugged in. Now i am trying to capture Bluetooth headphones next button event. Any help on this please.
Code for headphone button detection.
document.addEventListener('volumeupbutton', () => {
//Do something here
}, false);
I need something similar to this.
from Bluetooth headphones button event detection in javascript.
No comments:
Post a Comment