Commit dcfd071e authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Remove studio mode.

It's not useful.
parent b1dac6f4
...@@ -162,9 +162,6 @@ ...@@ -162,9 +162,6 @@
<input id="blackboardbox" type="checkbox">Blackboard mode</input> <input id="blackboardbox" type="checkbox">Blackboard mode</input>
</form> </form>
<form>
<input id="studiobox" type="checkbox">Studio mode</input>
</form>
</fieldset> </fieldset>
</div> </div>
......
...@@ -79,7 +79,6 @@ function getUsername() { ...@@ -79,7 +79,6 @@ function getUsername() {
* @property {string} [request] * @property {string} [request]
* @property {boolean} [activityDetection] * @property {boolean} [activityDetection]
* @property {boolean} [blackboardMode] * @property {boolean} [blackboardMode]
* @property {boolean} [studioMode]
*/ */
/** @type{settings} */ /** @type{settings} */
...@@ -215,8 +214,6 @@ function reflectSettings() { ...@@ -215,8 +214,6 @@ function reflectSettings() {
getInputElement('blackboardbox').checked = settings.blackboardMode; getInputElement('blackboardbox').checked = settings.blackboardMode;
getInputElement('studiobox').checked = settings.studioMode;
if(store) if(store)
storeSettings(settings); storeSettings(settings);
...@@ -450,14 +447,6 @@ getInputElement('blackboardbox').onchange = function(e) { ...@@ -450,14 +447,6 @@ getInputElement('blackboardbox').onchange = function(e) {
changePresentation(); 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) { document.getElementById('mutebutton').onclick = function(e) {
e.preventDefault(); e.preventDefault();
let localMute = getSettings().localMute; let localMute = getSettings().localMute;
...@@ -775,16 +764,6 @@ async function addLocalMedia(id, disableVideo) { ...@@ -775,16 +764,6 @@ async function addLocalMedia(id, disableVideo) {
settings.video ? {deviceId: settings.video} : settings.video ? {deviceId: settings.video} :
false; 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(video) {
if(settings.blackboardMode) { if(settings.blackboardMode) {
video.width = { min: 640, ideal: 1920 }; 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