From 36a482c44fdee10ee83af67e90220015b3ebc148 Mon Sep 17 00:00:00 2001 From: Shawn Date: Wed, 13 Apr 2022 21:05:31 +0100 Subject: use updated prejoin config, added disableInitialGUM --- index.html | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'index.html') diff --git a/index.html b/index.html index c26d371..b6ba7cc 100644 --- a/index.html +++ b/index.html @@ -81,6 +81,7 @@ const $disablePrejoinPage = $("#disablePrejoinPage"); const $startAudioMuted = $("#startAudioMuted"); const $startVideoMuted = $("#startVideoMuted"); + const $disableInitialGUM = $("#disableInitialGUM"); const $disableNotifications = $("#disableNotifications"); const $codeFeatures = $("#codeFeatures"); @@ -88,7 +89,7 @@ let paramGroup = {}; if ($disablePrejoinPage.prop('checked')) { - paramGroup['config.prejoinPageEnabled'] = false; + paramGroup['config.prejoinConfig.enabled'] = false; } if ($startAudioMuted.prop('checked')) { @@ -99,6 +100,10 @@ paramGroup['config.startWithVideoMuted'] = true; } + if ($disableInitialGUM.prop('checked')) { + paramGroup['config.disableInitialGUM'] = true; + } + if ($disableNotifications.prop('checked')) { paramGroup['config.notifications'] = '[]'; } @@ -110,6 +115,7 @@ $disablePrejoinPage.on("input", featureChanged); $startAudioMuted.on("input", featureChanged); $startVideoMuted.on("input", featureChanged); + $disableInitialGUM.on("input", featureChanged); $disableNotifications.on("input", featureChanged); // Handle interface change @@ -319,13 +325,25 @@ -
+
+
+ + +
+ + Skips the initial permissions check to get user media. Audio/video will be disabled, but can be enabled later. + Useful when joining just for screenshare, or as a passive attendee. + +
+