From 67042185c4b0cd5dc742770d6772e967875fbe14 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Tue, 29 Nov 2022 01:59:53 +0200 Subject: [PATCH] Update server --- public/bundle.js | 23 +++++------------------ public/index.js | 23 +++++------------------ 2 files changed, 10 insertions(+), 36 deletions(-) diff --git a/public/bundle.js b/public/bundle.js index e55a76e..335f81d 100644 --- a/public/bundle.js +++ b/public/bundle.js @@ -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 = () => { diff --git a/public/index.js b/public/index.js index ccf1fe2..bf3f6fe 100644 --- a/public/index.js +++ b/public/index.js @@ -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 = () => {