mirror of
https://github.com/jech/galene.git
synced 2024-11-10 02:35:58 +01:00
Disable checkbox on media failure in setLocal and SharedMedia.
This commit is contained in:
parent
5715182978
commit
1f50b42ee0
1 changed files with 4 additions and 0 deletions
|
@ -217,6 +217,8 @@ async function setLocalMedia() {
|
|||
stream = await navigator.mediaDevices.getUserMedia(constraints);
|
||||
} catch(e) {
|
||||
console.error(e);
|
||||
document.getElementById('presenterbox').checked = false;
|
||||
await setLocalMedia();
|
||||
return;
|
||||
}
|
||||
localMediaId = await newUpStream();
|
||||
|
@ -259,6 +261,8 @@ async function setShareMedia() {
|
|||
stream = await navigator.mediaDevices.getDisplayMedia({});
|
||||
} catch(e) {
|
||||
console.error(e);
|
||||
document.getElementById('sharebox').checked = false;
|
||||
await setShareMedia();
|
||||
return;
|
||||
}
|
||||
shareMediaId = await newUpStream();
|
||||
|
|
Loading…
Reference in a new issue