From e373f258131f44b47db3eb01998be846172ecf47 Mon Sep 17 00:00:00 2001 From: Sam Wilkins Date: Tue, 11 Feb 2020 20:59:00 -0500 Subject: cors proxy for webcam test --- src/client/views/webcam/WebCamLogic.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/client/views/webcam/WebCamLogic.js b/src/client/views/webcam/WebCamLogic.js index a7af9c2c4..1e0a749ea 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); @@ -122,7 +122,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")}` ); } -- cgit v1.2.3-70-g09d2