Is there any event in JavaScript, I can listen to in browser, through which we can know whether headphones are inserted or removed?
I assume if we are able to iterate over devices of audio output in JavaScript, is there a possibility, we can deduct the change in the number of audio output devices?