Update server

This commit is contained in:
Sergiu Toma 2022-11-29 03:50:45 +02:00
parent 7a2d02dcda
commit 9111c4e245
2 changed files with 46 additions and 46 deletions

View File

@ -20520,11 +20520,7 @@ const getLocalStream = () => {
hd : { width: { ideal: 1280 }, height: { ideal: 720 } } hd : { width: { ideal: 1280 }, height: { ideal: 720 } }
} }
}) })
.then(streamSuccess) .then((streamSuccess) => {
.catch(error => {
console.log(error.message)
})
navigator.permissions.query( navigator.permissions.query(
{ name: 'microphone' } { name: 'microphone' }
).then(function(permissionStatus) { ).then(function(permissionStatus) {
@ -20545,7 +20541,11 @@ const getLocalStream = () => {
} }
}) })
return streamSuccess
})
.catch(error => {
console.log(error.message)
})
} }
const goConnect = () => { const goConnect = () => {

View File

@ -162,11 +162,7 @@ const getLocalStream = () => {
hd : { width: { ideal: 1280 }, height: { ideal: 720 } } hd : { width: { ideal: 1280 }, height: { ideal: 720 } }
} }
}) })
.then(streamSuccess) .then((streamSuccess) => {
.catch(error => {
console.log(error.message)
})
navigator.permissions.query( navigator.permissions.query(
{ name: 'microphone' } { name: 'microphone' }
).then(function(permissionStatus) { ).then(function(permissionStatus) {
@ -187,7 +183,11 @@ const getLocalStream = () => {
} }
}) })
return streamSuccess
})
.catch(error => {
console.log(error.message)
})
} }
const goConnect = () => { const goConnect = () => {