1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-22 16:45:58 +01:00

Remove studio mode.

It's not useful.
This commit is contained in:
Juliusz Chroboczek 2020-11-20 21:22:52 +01:00
parent b1dac6f477
commit dcfd071ea0
2 changed files with 0 additions and 24 deletions

View file

@ -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>

View file

@ -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() {
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) {
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) {
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 };