Implement automatic enabling of camera.
This commit is contained in:
1 parent
4c9762931d
commit
2c17157ea2
3 files changed
+20
-1
No files matched your search
+1
-1
@@ -456,7 +456,7 @@ textarea.form-reply {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 15%;
|
top: 15%;
|
||||||
left: 25%;
|
left: 25%;
|
||||||
width: 21em;
|
width: 30em;
|
||||||
padding: 2em;
|
padding: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -127,6 +127,11 @@
|
|||||||
<label for="password">Password:</label>
|
<label for="password">Password:</label>
|
||||||
<input id="password" type="password" name="password"
|
<input id="password" type="password" name="password"
|
||||||
autocomplete="current-password" class="form-control"/>
|
autocomplete="current-password" class="form-control"/>
|
||||||
|
<label>Present:</label>
|
||||||
|
<input id="presentoff" type="radio" name="presentradio" value="" checked/>
|
||||||
|
<label for="presentoff">nothing</label>
|
||||||
|
<input id="presentboth" type="radio" name="presentradio" value="both"/>
|
||||||
|
<label for="presentoff">camera and mike</label>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
<input id="connectbutton" type="submit" class="btn btn-blue" value="Connect"/>
|
<input id="connectbutton" type="submit" class="btn btn-blue" value="Connect"/>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -272,6 +272,7 @@ function setConnected(connected) {
|
|||||||
userpass ? userpass.username : '';
|
userpass ? userpass.username : '';
|
||||||
getInputElement('password').value =
|
getInputElement('password').value =
|
||||||
userpass ? userpass.password : '';
|
userpass ? userpass.password : '';
|
||||||
|
getInputElement('presentoff').checked = true;
|
||||||
statspan.textContent = 'Disconnected';
|
statspan.textContent = 'Disconnected';
|
||||||
statspan.classList.remove('connected');
|
statspan.classList.remove('connected');
|
||||||
statspan.classList.add('disconnected');
|
statspan.classList.add('disconnected');
|
||||||
@@ -1937,6 +1938,19 @@ document.getElementById('userform').onsubmit = async function(e) {
|
|||||||
} finally {
|
} finally {
|
||||||
connecting = false;
|
connecting = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let presentboth = getInputElement('presentboth').checked;
|
||||||
|
if(presentboth) {
|
||||||
|
let button = getButtonElement('presentbutton');
|
||||||
|
button.disabled = true;
|
||||||
|
try {
|
||||||
|
let id = findUpMedia('local');
|
||||||
|
if(!id)
|
||||||
|
await addLocalMedia();
|
||||||
|
} finally {
|
||||||
|
button.disabled = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
document.getElementById('disconnectbutton').onclick = function(e) {
|
document.getElementById('disconnectbutton').onclick = function(e) {
|
||||||
|
|||||||
Reference in new issue
Block a user