Commit c2ead90e authored by Muhammadali's avatar Muhammadali

update-

parent b6ba0ead
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "3.6.6", "version": "3.6.7",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -101,6 +101,17 @@ export class BoxDialer { ...@@ -101,6 +101,17 @@ export class BoxDialer {
// console.log('call failed with cause: ' + e.data); // console.log('call failed with cause: ' + e.data);
if (e.cause == 'User Denied Media Access') { if (e.cause == 'User Denied Media Access') {
console.log('User_Danied_Media_Access'); console.log('User_Danied_Media_Access');
window.navigator.mediaDevices
.getUserMedia({ audio: true })
.then(function (stream) {
console.log(
'User_Danied_Media_Access',
'You let me use your mic!',
);
})
.catch(function (err) {
console.log('User_Danied_Media_Access', 'No mic for you!');
});
} }
}, },
ended: (e) => { ended: (e) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment