From dcfd071ea027344ade56b8cd76c2cc912bd066b2 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Fri, 20 Nov 2020 21:22:52 +0100 Subject: [PATCH] Remove studio mode. It's not useful. --- static/sfu.html | 3 --- static/sfu.js | 21 --------------------- 2 files changed, 24 deletions(-) diff --git a/static/sfu.html b/static/sfu.html index 46bbe7c..70bab9d 100644 --- a/static/sfu.html +++ b/static/sfu.html @@ -162,9 +162,6 @@ Blackboard mode -
- Studio mode -
diff --git a/static/sfu.js b/static/sfu.js index eef34cb..19b07ca 100644 --- a/static/sfu.js +++ b/static/sfu.js @@ -79,7 +79,6 @@ function getUsername() { * @property {string} [request] * @property {boolean} [activityDetection] * @property {boolean} [blackboardMode] - * @property {boolean} [studioMode] */ /** @type{settings} */ @@ -215,8 +214,6 @@ function reflectSettings() { getInputElement('blackboardbox').checked = settings.blackboardMode; - getInputElement('studiobox').checked = settings.studioMode; - if(store) storeSettings(settings); @@ -450,14 +447,6 @@ getInputElement('blackboardbox').onchange = function(e) { changePresentation(); } -getInputElement('studiobox').onchange = function(e) { - e.preventDefault(); - if(!(this instanceof HTMLInputElement)) - throw new Error('Unexpected type for this'); - updateSettings({studioMode: this.checked}); - changePresentation(); -} - document.getElementById('mutebutton').onclick = function(e) { e.preventDefault(); let localMute = getSettings().localMute; @@ -775,16 +764,6 @@ async function addLocalMedia(id, disableVideo) { settings.video ? {deviceId: settings.video} : false; - if(audio) { - if(settings.studioMode) { - audio.echoCancellation = false; - audio.noiseSuppression = false; - audio.channelCount = 2; - audio.latency = 0.01; - audio.autoGainControl = false; - } - } - if(video) { if(settings.blackboardMode) { video.width = { min: 640, ideal: 1920 };