FIX: being in a silent zone new forces mediaConstraints to false
This commit is contained in:
parent
2db446889b
commit
9dd3e8ff85
2 changed files with 15 additions and 10 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue