LH-265-enable-audio-in-mediasoup #16
@ -20524,6 +20524,7 @@ const getLocalStream = () => {
|
|||||||
doIHaveAudio = true;
|
doIHaveAudio = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 🟨 [PERMISSION] onchange denied
|
||||||
// If it is the first time client enter and give permission
|
// If it is the first time client enter and give permission
|
||||||
permissionStatus.onchange = function() {
|
permissionStatus.onchange = function() {
|
||||||
console.log('🟨 [PERMISSION] onchange', this.state);
|
console.log('🟨 [PERMISSION] onchange', this.state);
|
||||||
@ -20541,7 +20542,7 @@ const getLocalStream = () => {
|
|||||||
.catch(error => {
|
.catch(error => {
|
||||||
console.log(error.message)
|
console.log(error.message)
|
||||||
})
|
})
|
||||||
} else if (this.state === 'denied') {
|
} else /*if (this.state === 'denied') */ {
|
||||||
doIHaveAudio = false;
|
doIHaveAudio = false;
|
||||||
console.log('Getting user permission');
|
console.log('Getting user permission');
|
||||||
navigator.mediaDevices.getUserMedia({
|
navigator.mediaDevices.getUserMedia({
|
||||||
|
@ -166,6 +166,7 @@ const getLocalStream = () => {
|
|||||||
doIHaveAudio = true;
|
doIHaveAudio = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 🟨 [PERMISSION] onchange denied
|
||||||
// If it is the first time client enter and give permission
|
// If it is the first time client enter and give permission
|
||||||
permissionStatus.onchange = function() {
|
permissionStatus.onchange = function() {
|
||||||
console.log('🟨 [PERMISSION] onchange', this.state);
|
console.log('🟨 [PERMISSION] onchange', this.state);
|
||||||
@ -183,7 +184,7 @@ const getLocalStream = () => {
|
|||||||
.catch(error => {
|
.catch(error => {
|
||||||
console.log(error.message)
|
console.log(error.message)
|
||||||
})
|
})
|
||||||
} else if (this.state === 'denied') {
|
} else /*if (this.state === 'denied') */ {
|
||||||
doIHaveAudio = false;
|
doIHaveAudio = false;
|
||||||
console.log('Getting user permission');
|
console.log('Getting user permission');
|
||||||
navigator.mediaDevices.getUserMedia({
|
navigator.mediaDevices.getUserMedia({
|
||||||
|
Loading…
Reference in New Issue
Block a user