Created
January 27, 2021 11:49
-
-
Save cketti/f0ed9b722d04618b33a7269d030e1072 to your computer and use it in GitHub Desktop.
Jitsi Meet startWithAudioMuted/startWithVideoMuted temporary fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# … | |
# Allow access to /etc/jitsi/meet/start_muted.html | |
<Directory "/etc/jitsi/meet"> | |
<FilesMatch "start_muted.html"> | |
Require all granted | |
</FilesMatch> | |
</Directory> | |
RewriteEngine on | |
# Rewrite all room URLs that don't contain a query parameter named 'start_muted_fix' | |
RewriteCond %{QUERY_STRING} !start_muted_fix | |
RewriteRule ^/([a-zA-Z0-9]+)$ /etc/jitsi/meet/start_muted.html [L] | |
RewriteRule ^/([a-zA-Z0-9]+)$ /index.html | |
# … |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<script> | |
const url = new URL(window.location.href); | |
const extraHash = 'config.startWithAudioMuted=true&config.startWithVideoMuted=true'; | |
const extraQueryParam = 'start_muted_fix'; | |
url.search = url.search == '' ? '?' + extraQueryParam : url.search + '&' + extraQueryParam; | |
url.hash = url.hash == '' ? '#' + extraHash : url.hash + '&' + extraHash; | |
window.location.replace(url.toString()); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For docker-based setups the following seems to work.
${CONFIG}/web/nginx/meet.config
I placed
start_muted.html
in${CONFIG}/web
and needed to add a value tostart_muted_fix
to make theif
above work.