From baa4e787a2abfdf488e2ecc539f527e9e6c7a719 Mon Sep 17 00:00:00 2001 From: lukasIO Date: Thu, 20 Nov 2025 15:55:51 +0100 Subject: [PATCH] Default to dual peer connection for custom tab (#496) --- app/custom/VideoConferenceClientImpl.tsx | 3 ++- app/custom/page.tsx | 10 ++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app/custom/VideoConferenceClientImpl.tsx b/app/custom/VideoConferenceClientImpl.tsx index 8834ce8..cd7f77a 100644 --- a/app/custom/VideoConferenceClientImpl.tsx +++ b/app/custom/VideoConferenceClientImpl.tsx @@ -21,6 +21,7 @@ export function VideoConferenceClientImpl(props: { liveKitUrl: string; token: string; codec: VideoCodec | undefined; + singlePeerConnection: boolean | undefined; }) { const keyProvider = new ExternalE2EEKeyProvider(); const { worker, e2eePassphrase } = useSetupE2EE(); @@ -43,7 +44,7 @@ export function VideoConferenceClientImpl(props: { worker, } : undefined, - singlePeerConnection: true, + singlePeerConnection: props.singlePeerConnection, }; }, [e2eeEnabled, props.codec, keyProvider, worker]); diff --git a/app/custom/page.tsx b/app/custom/page.tsx index 9c100a5..e251904 100644 --- a/app/custom/page.tsx +++ b/app/custom/page.tsx @@ -7,9 +7,10 @@ export default async function CustomRoomConnection(props: { liveKitUrl?: string; token?: string; codec?: string; + singlePC?: string; }>; }) { - const { liveKitUrl, token, codec } = await props.searchParams; + const { liveKitUrl, token, codec, singlePC } = await props.searchParams; if (typeof liveKitUrl !== 'string') { return

Missing LiveKit URL

; } @@ -22,7 +23,12 @@ export default async function CustomRoomConnection(props: { return (
- +
); }