mirror of
https://github.com/jech/galene.git
synced 2024-11-14 12:45:58 +01:00
Add option to disable mirror view.
This commit is contained in:
parent
8a44726f89
commit
8e395e38ac
2 changed files with 23 additions and 2 deletions
|
@ -181,6 +181,11 @@
|
||||||
<option value="">off</option>
|
<option value="">off</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<form>
|
||||||
|
<input id="mirrorbox" type="checkbox" checked/>
|
||||||
|
<label for="mirrobox">Mirror view</label>
|
||||||
|
</form>
|
||||||
|
|
||||||
<form>
|
<form>
|
||||||
<input id="blackboardbox" type="checkbox"/>
|
<input id="blackboardbox" type="checkbox"/>
|
||||||
<label for="blackboardbox">Blackboard mode</label>
|
<label for="blackboardbox">Blackboard mode</label>
|
||||||
|
|
|
@ -82,6 +82,7 @@ function getUserPass() {
|
||||||
* @property {string} [request]
|
* @property {string} [request]
|
||||||
* @property {boolean} [activityDetection]
|
* @property {boolean} [activityDetection]
|
||||||
* @property {Array.<number>} [resolution]
|
* @property {Array.<number>} [resolution]
|
||||||
|
* @property {boolean} [mirrorView]
|
||||||
* @property {boolean} [blackboardMode]
|
* @property {boolean} [blackboardMode]
|
||||||
* @property {string} [filter]
|
* @property {string} [filter]
|
||||||
*/
|
*/
|
||||||
|
@ -234,6 +235,13 @@ function reflectSettings() {
|
||||||
store = true;
|
store = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(settings.hasOwnProperty('mirrorView')) {
|
||||||
|
getInputElement('mirrorbox').checked = settings.mirrorView;
|
||||||
|
} else {
|
||||||
|
settings.mirrorView = getInputElement('mirrorbox').checked;
|
||||||
|
store = true;
|
||||||
|
}
|
||||||
|
|
||||||
if(settings.hasOwnProperty('activityDetection')) {
|
if(settings.hasOwnProperty('activityDetection')) {
|
||||||
getInputElement('activitybox').checked = settings.activityDetection;
|
getInputElement('activitybox').checked = settings.activityDetection;
|
||||||
} else {
|
} else {
|
||||||
|
@ -470,6 +478,14 @@ getSelectElement('audioselect').onchange = function(e) {
|
||||||
changePresentation();
|
changePresentation();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
getInputElement('mirrorbox').onchange = function(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
if(!(this instanceof HTMLInputElement))
|
||||||
|
throw new Error('Unexpected type for this');
|
||||||
|
updateSettings({mirrorView: this.checked});
|
||||||
|
changePresentation();
|
||||||
|
};
|
||||||
|
|
||||||
getInputElement('blackboardbox').onchange = function(e) {
|
getInputElement('blackboardbox').onchange = function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
if(!(this instanceof HTMLInputElement))
|
if(!(this instanceof HTMLInputElement))
|
||||||
|
@ -1095,7 +1111,7 @@ async function addLocalMedia(id) {
|
||||||
|
|
||||||
c.onstats = gotUpStats;
|
c.onstats = gotUpStats;
|
||||||
c.setStatsInterval(2000);
|
c.setStatsInterval(2000);
|
||||||
await setMedia(c, true, true);
|
await setMedia(c, true, settings.mirrorView);
|
||||||
setButtonsVisibility();
|
setButtonsVisibility();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue