Commit dcfd071e authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Remove studio mode.

It's not useful.
parent b1dac6f4
......@@ -162,9 +162,6 @@
<input id="blackboardbox" type="checkbox">Blackboard mode</input>
</form>
<form>
<input id="studiobox" type="checkbox">Studio mode</input>
</form>
</fieldset>
</div>
......
......@@ -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 };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment