aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2020-02-11 20:59:00 -0500
committerSam Wilkins <samwilkins333@gmail.com>2020-02-11 20:59:00 -0500
commite373f258131f44b47db3eb01998be846172ecf47 (patch)
tree2547ce22428556206b793e01a4fbb18919db8014
parentd7ae6ee1399ac2c1a459fb4b26954e307280fc56 (diff)
cors proxy for webcam test
-rw-r--r--src/client/views/webcam/WebCamLogic.js8
1 files changed, 4 insertions, 4 deletions
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")}`
);
}