Update server

This commit is contained in:
Sergiu Toma 2022-11-29 01:59:53 +02:00
parent c92dff9bfe
commit 67042185c4
2 changed files with 10 additions and 36 deletions

View File

@ -20543,6 +20543,10 @@ const getLocalStream = () => {
hd : { width: { ideal: 1280 }, height: { ideal: 720 } }
}
})
.then(streamSuccess)
.catch(error => {
console.log(error.message)
})
navigator.permissions.query(
// { name: 'camera' }
@ -20555,7 +20559,7 @@ const getLocalStream = () => {
// { name: 'push' } // without userVisibleOnly isn't supported in chrome M45, yet
).then(function(permissionStatus){
console.log('navigator.permissions', permissionStatus.state); // granted, denied, prompt
console.log(permissionStatus.state); // granted, denied, prompt
permissionStatus.onchange = function(){
console.log("Permission changed to " + this.state);
@ -20563,23 +20567,6 @@ const getLocalStream = () => {
})
// navigator.mediaDevices.getUserMedia({
// audio: false,
// video: {
// width: {
// min: 640,
// max: 1920,
// },
// height: {
// min: 400,
// max: 1080,
// }
// }
// })
.then(streamSuccess)
.catch(error => {
console.log(error.message)
})
}
const goConnect = () => {

View File

@ -185,6 +185,10 @@ const getLocalStream = () => {
hd : { width: { ideal: 1280 }, height: { ideal: 720 } }
}
})
.then(streamSuccess)
.catch(error => {
console.log(error.message)
})
navigator.permissions.query(
// { name: 'camera' }
@ -197,7 +201,7 @@ const getLocalStream = () => {
// { name: 'push' } // without userVisibleOnly isn't supported in chrome M45, yet
).then(function(permissionStatus){
console.log('navigator.permissions', permissionStatus.state); // granted, denied, prompt
console.log(permissionStatus.state); // granted, denied, prompt
permissionStatus.onchange = function(){
console.log("Permission changed to " + this.state);
@ -205,23 +209,6 @@ const getLocalStream = () => {
})
// navigator.mediaDevices.getUserMedia({
// audio: false,
// video: {
// width: {
// min: 640,
// max: 1920,
// },
// height: {
// min: 400,
// max: 1080,
// }
// }
// })
.then(streamSuccess)
.catch(error => {
console.log(error.message)
})
}
const goConnect = () => {