How to trigger microphone permission popup on chrome (javascript) [duplicate]
You need to get the permission using the navigator object.
navigator.mediaDevices.getUserMedia({ audio: true }) .then(function(stream) { console.log('You let me use your mic!') }) .catch(function(err) { console.log('No mic for you!') });
Also you need to run it on HTTPS and on a website instead of using IP addresses