diff options
| author | Shawn <shawn@qwil.io> | 2022-04-13 21:05:31 +0100 |
|---|---|---|
| committer | Shawn <shawn@qwil.io> | 2022-04-13 21:05:31 +0100 |
| commit | 36a482c44fdee10ee83af67e90220015b3ebc148 (patch) | |
| tree | 38484c2d0df4fbc95c4e15bd95e79e8acee4c165 | |
| parent | 0c8a65aca8a437a6c80822337044a7e0b6f1b846 (diff) | |
use updated prejoin config, added disableInitialGUM
| -rw-r--r-- | index.html | 22 |
1 files changed, 20 insertions, 2 deletions
@@ -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 @@ </label> </div> - <div class="form-check"> + <div class="form-check mb-4"> <input class="form-check-input" type="checkbox" value="" id="startVideoMuted"> <label class="form-check-label" for="startVideoMuted"> Start with Camera off </label> </div> + <div class="form-check mb-4"> + <input class="form-check-input" type="checkbox" value="" id="disableInitialGUM"> + <label class="form-check-label" for="disableInitialGUM"> + Don't ask for media permissions + </label> + <br/> + <small class="text-muted"> + 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. + </small> + </div> + <div class="form-check mt-4"> <input class="form-check-input" type="checkbox" value="" id="disableNotifications"> <label class="form-check-label" for="disableNotifications"> |
