feat: jitsi no start with audio or video muted when needed

This commit is contained in:
kharhamel 2020-10-23 17:00:56 +02:00
parent 3fdca94afb
commit 00ad28f084

View File

@ -1,5 +1,6 @@
import {CoWebsiteManager} from "./CoWebsiteManager"; import {CoWebsiteManager} from "./CoWebsiteManager";
import {JITSI_URL} from "../Enum/EnvironmentVariable"; import {JITSI_URL} from "../Enum/EnvironmentVariable";
import {mediaManager} from "./MediaManager";
declare const window:any; // eslint-disable-line @typescript-eslint/no-explicit-any declare const window:any; // eslint-disable-line @typescript-eslint/no-explicit-any
const interfaceConfig = { const interfaceConfig = {
@ -36,6 +37,8 @@ class JitsiFactory {
height: "100%", height: "100%",
parentNode: cowebsiteDiv, parentNode: cowebsiteDiv,
configOverwrite: { configOverwrite: {
startWithAudioMuted: !mediaManager.constraintsMedia.audio,
startWithVideoMuted: mediaManager.constraintsMedia.video === false,
prejoinPageEnabled: false prejoinPageEnabled: false
}, },
interfaceConfigOverwrite: interfaceConfig, interfaceConfigOverwrite: interfaceConfig,