From 84ac401d139a4f88ba349b1d1642a14e00b35cbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5var=20Aamb=C3=B8=20Fosstveit?= Date: Thu, 26 Apr 2018 09:27:14 +0200 Subject: [PATCH 1/2] Change to URL handling. Join by /roomname. --- app/lib/index.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/lib/index.jsx b/app/lib/index.jsx index e4f9cd2..c5ca035 100644 --- a/app/lib/index.jsx +++ b/app/lib/index.jsx @@ -74,7 +74,8 @@ function run() const peerName = randomString({ length: 8 }).toLowerCase(); const urlParser = new UrlParse(window.location.href, true); - let roomId = urlParser.query.roomId; + let roomId = (urlParser.pathname).substr(1) + ? (urlParser.pathname).substr(1) : urlParser.query.roomId; const produce = urlParser.query.produce !== 'false'; let displayName = urlParser.query.displayName; const isSipEndpoint = urlParser.query.sipEndpoint === 'true'; From d3883906aba09cc76231d821e25bae479835c032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5var=20Aamb=C3=B8=20Fosstveit?= Date: Thu, 26 Apr 2018 09:34:10 +0200 Subject: [PATCH 2/2] Deactivate simulcast by default. --- app/lib/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/index.jsx b/app/lib/index.jsx index c5ca035..6987482 100644 --- a/app/lib/index.jsx +++ b/app/lib/index.jsx @@ -79,7 +79,7 @@ function run() const produce = urlParser.query.produce !== 'false'; let displayName = urlParser.query.displayName; const isSipEndpoint = urlParser.query.sipEndpoint === 'true'; - const useSimulcast = urlParser.query.simulcast !== 'false'; + const useSimulcast = urlParser.query.simulcast === 'true'; if (!roomId) {