feat(jitsi): add 'Hide AE system menu' embed toggle and URL param
This commit is contained in:
@@ -27,6 +27,9 @@
|
|||||||
let disable_reaction = $state(true);
|
let disable_reaction = $state(true);
|
||||||
let disable_raise_hand = $state(true);
|
let disable_raise_hand = $state(true);
|
||||||
|
|
||||||
|
// Toggle to hide AE system menu when embedding in other pages
|
||||||
|
let hide_ae_menu = $state(false);
|
||||||
|
|
||||||
let show_advanced = $state(false);
|
let show_advanced = $state(false);
|
||||||
let show_sound = $state(false);
|
let show_sound = $state(false);
|
||||||
let output_mode = $state<'url' | 'iframe'>('url');
|
let output_mode = $state<'url' | 'iframe'>('url');
|
||||||
@@ -53,6 +56,8 @@
|
|||||||
if (disable_participant_left) p.set('participant_left_sound', 'true');
|
if (disable_participant_left) p.set('participant_left_sound', 'true');
|
||||||
if (disable_reaction) p.set('reaction_sound', 'true');
|
if (disable_reaction) p.set('reaction_sound', 'true');
|
||||||
if (disable_raise_hand) p.set('raise_hand_sound', 'true');
|
if (disable_raise_hand) p.set('raise_hand_sound', 'true');
|
||||||
|
// AE embed option: hide AE system menu when embedding in other pages
|
||||||
|
if (hide_ae_menu) p.set('ae_hide_menu', 'true');
|
||||||
return `${effective_base}?${p.toString()}`;
|
return `${effective_base}?${p.toString()}`;
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -179,6 +184,14 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- AE menu toggle -->
|
||||||
|
<div>
|
||||||
|
<label class="flex items-center gap-2 cursor-pointer">
|
||||||
|
<input type="checkbox" bind:checked={hide_ae_menu} class="checkbox checkbox-sm" />
|
||||||
|
<span class="text-xs">Hide AE system menu (for embed)</span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Start options -->
|
<!-- Start options -->
|
||||||
<div class="flex flex-wrap gap-4">
|
<div class="flex flex-wrap gap-4">
|
||||||
<label class="flex items-center gap-2 cursor-pointer">
|
<label class="flex items-center gap-2 cursor-pointer">
|
||||||
|
|||||||
Reference in New Issue
Block a user