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 (
- +
); }