diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/webcam/WebCamLogic.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/views/webcam/WebCamLogic.js b/src/client/views/webcam/WebCamLogic.js index bd1f5c847..3dfb82465 100644 --- a/src/client/views/webcam/WebCamLogic.js +++ b/src/client/views/webcam/WebCamLogic.js @@ -104,9 +104,9 @@ export function initialize(roomName, handlerUI) { navigator.mediaDevices.getUserMedia({ - audio: true, - video: true - }) + audio: true, + video: true + }) .then(gotStream) .catch(function (e) { alert('getUserMedia() error: ' + e.name); @@ -154,7 +154,7 @@ export function initialize(roomName, handlerUI) { if (location.hostname !== 'localhost') { requestTurn( - 'https://computeengineondemand.appspot.com/turn?username=41784574&key=4080218913' + `${window.location.origin}/corsProxy/${encodeURIComponent("https://computeengineondemand.appspot.com/turn?username=41784574&key=4080218913")}` ); } |