How can i trigger this modal on javascript button click
Allow access to microphone and camera on Android devicesSelect 'Settings > Apps > LINE WORKS' on your device. Select 'Permissions' in App info. Allow access to 'Microphone', 'Phone', and 'Camera'.
Here's how: Select Start > Settings > Privacy > Microphone . In Allow access to the microphone on this device, select Change and make sure Microphone access for this device is turned on.
Restart your Chrome browser, then re-open Chrome microphone settings (chrome://settings/content/microphone) and toggle back on 'Ask before accessing', as shown below.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With