Update server
This commit is contained in:
parent
c92dff9bfe
commit
67042185c4
@ -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 = () => {
|
||||
|
@ -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 = () => {
|
||||
|
Loading…
Reference in New Issue
Block a user