LH-265-enable-audio-in-mediasoup #16

Closed
sergiu wants to merge 120 commits from LH-265-enable-audio-in-mediasoup into master
2 changed files with 4 additions and 2 deletions
Showing only changes of commit e22093d97e - Show all commits

View File

@ -20524,6 +20524,7 @@ const getLocalStream = () => {
doIHaveAudio = true;
}
// 🟨 [PERMISSION] onchange denied
// If it is the first time client enter and give permission
permissionStatus.onchange = function() {
console.log('🟨 [PERMISSION] onchange', this.state);
@ -20541,7 +20542,7 @@ const getLocalStream = () => {
.catch(error => {
console.log(error.message)
})
} else if (this.state === 'denied') {
} else /*if (this.state === 'denied') */ {
doIHaveAudio = false;
console.log('Getting user permission');
navigator.mediaDevices.getUserMedia({

View File

@ -166,6 +166,7 @@ const getLocalStream = () => {
doIHaveAudio = true;
}
// 🟨 [PERMISSION] onchange denied
// If it is the first time client enter and give permission
permissionStatus.onchange = function() {
console.log('🟨 [PERMISSION] onchange', this.state);
@ -183,7 +184,7 @@ const getLocalStream = () => {
.catch(error => {
console.log(error.message)
})
} else if (this.state === 'denied') {
} else /*if (this.state === 'denied') */ {
doIHaveAudio = false;
console.log('Getting user permission');
navigator.mediaDevices.getUserMedia({