I created a web page for mobile phones where you have to confirm that you have headphones connected to your smartphone by clicking a button. This, because on the page you are redirected to after the click, you hear an audio stream. If someone didn't have headphones, the sound would disturb others in the same room.
Is there any way to tell via the browser (Safari, Chrome) if someone has headphones plugged in? Then a confirmation using the button would no longer be necessary.