Merge pull request #1508 from thecodingmachine/fixSilentZones

FIX: being in a silent zone new forces mediaConstraints to false
This commit is contained in:
Kharhamel 2021-10-07 14:50:40 +02:00 committed by GitHub
commit 60eefbce94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 10 deletions

View file

@ -15,6 +15,7 @@
import {onDestroy} from "svelte";
function screenSharingClick(): void {
if (isSilent) return;
if ($requestedScreenSharingState === true) {
requestedScreenSharingState.disableScreenSharing();
} else {
@ -23,6 +24,7 @@
}
function cameraClick(): void {
if (isSilent) return;
if ($requestedCameraState === true) {
requestedCameraState.disableWebcam();
} else {
@ -31,6 +33,7 @@
}
function microphoneClick(): void {
if (isSilent) return;
if ($requestedMicrophoneState === true) {
requestedMicrophoneState.disableMicrophone();
} else {