More work on Jitsi for IDAA
This commit is contained in:
@@ -111,6 +111,11 @@
|
||||
let email = user_email ?? 'test+unknown@oneskyit.com';
|
||||
// Replace spaces with plus symbol in email addresses
|
||||
email = email.replace(/\s+/g, '+');
|
||||
|
||||
// Get moderator settings from URL parameters
|
||||
let start_muted_param = url_params.get('start_muted') === 'true';
|
||||
let start_hidden_param = url_params.get('start_hidden') === 'true';
|
||||
let reactions_muted_param = url_params.get('reactions_muted') === 'true';
|
||||
// let is_moderator = user_moderator === 'true' || user_moderator === true ? true : false;
|
||||
|
||||
// 1. Function to fetch the JWT from your backend
|
||||
@@ -141,11 +146,11 @@
|
||||
// email: 'test@example.com',
|
||||
// moderator: true
|
||||
|
||||
id: room_name + '_' + (is_moderator ? 'mod' : 'user') + '_' + Math.floor(Math.random() * 10000),
|
||||
id: novi_user_id,
|
||||
name: display_name,
|
||||
// avatar: 'https://example.com/avatar.png', // Not used at this time
|
||||
email: email,
|
||||
moderator: true
|
||||
moderator: is_moderator
|
||||
},
|
||||
|
||||
// 'features': For enabling/disabling major Jitsi tools
|
||||
@@ -158,10 +163,10 @@
|
||||
|
||||
// 'settings': For moderator default checkboxes in the settings panel
|
||||
settings: {
|
||||
startMuted: true, // Corresponds to "Everyone starts muted"
|
||||
startHidden: true, // Corresponds to "Everyone starts hidden"
|
||||
startMuted: start_muted_param, // Corresponds to "Everyone starts muted"
|
||||
startHidden: start_hidden_param, // Corresponds to "Everyone starts hidden"
|
||||
// followMe: false, // Corresponds to "Everyone follows me"
|
||||
reactionsMuted: true, // Corresponds to "Mute reaction sounds for everyone"
|
||||
reactionsMuted: reactions_muted_param, // Corresponds to "Mute reaction sounds for everyone"
|
||||
},
|
||||
// *END* 'context'
|
||||
|
||||
@@ -225,6 +230,8 @@
|
||||
startWithVideoMuted: true, // Mutes the local user upon joining
|
||||
enableLobby: is_moderator,
|
||||
|
||||
disableReactionsModeration: false, // This hides the "Mute reaction sounds for everyone" option even from moderators. Does it actually disables reactions as well???
|
||||
|
||||
// OMG THESE disabledSounds ACTUALLY WORK!!!!
|
||||
// Use the disableSounds array to disable per browser session instance. This should be configurable though. The JWT payload (above in getJitsiJwt()) does not seem to support it?
|
||||
|
||||
@@ -254,6 +261,11 @@
|
||||
//],
|
||||
|
||||
disabledSounds: disabled_sounds.filter(sound => sound), // Remove any null/undefined entries
|
||||
|
||||
// disabledNotifications: [
|
||||
// 'notify.chatMessages', // shown when receiving chat messages while the chat window is closed
|
||||
// 'notify.grantedTo', // shown when moderator rights were granted to a participant
|
||||
// ]
|
||||
},
|
||||
|
||||
interfaceConfigOverwrite: {
|
||||
|
||||
Reference in New Issue
Block a user