mirror of
https://github.com/jech/galene.git
synced 2024-12-22 23:35:46 +01:00
Remove studio mode.
It's not useful.
This commit is contained in:
parent
b1dac6f477
commit
dcfd071ea0
2 changed files with 0 additions and 24 deletions
|
@ -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 };
|
||||
|
|
Loading…
Reference in a new issue