diff --git a/src/lib/Jitsi.svelte b/src/lib/Jitsi.svelte index 55c46fc..a18e35d 100644 --- a/src/lib/Jitsi.svelte +++ b/src/lib/Jitsi.svelte @@ -45,8 +45,10 @@ interact with the Jitsi instance directly without causing a re-render. /** * Optional snippet rendered after the API is initialized and the meeting is joined. * Can be used to provide additional UI elements or controls related to the meeting. + * Overlay has pointer-events disabled to allow interaction with the underlying Jitsi + * interface. */ - joined?: Snippet<[api: JitsiMeetExternalAPI]>; + joinedOverlay?: Snippet<[api: JitsiMeetExternalAPI]>; /** * Optional snippet rendered after the user has left the meeting. Can be used to * provide a farewell message or other post-meeting content. @@ -70,7 +72,7 @@ interact with the Jitsi instance directly without causing a re-render. class: classValue, loading, holdLoadingUntilJoined = false, - joined, + joinedOverlay, left, onapiready, onjoin, @@ -93,7 +95,7 @@ interact with the Jitsi instance directly without causing a re-render. onMount(() => { // check if we have a duplicate container - if (document.querySelectorAll('#jitsi-container').length > 1) { + if (document.querySelectorAll('#jitsi-iframe').length > 1) { console.warn('Duplicate Jitsi container detected. This may lead to unexpected behavior.'); } }); @@ -142,18 +144,44 @@ interact with the Jitsi instance directly without causing a re-render. -
+
{#if showLoading} -
{@render loading?.()}
+
{@render loading?.()}
{/if} - {#if joinedMeeting && api && joined} -
{@render joined(api)}
+ {#if joinedMeeting && api && joinedOverlay} +
{@render joinedOverlay(api)}
{/if} {#if leftMeeting} -
{@render left?.()}
+
{@render left?.()}
{/if} -
+
+ +