From 49b83637dc934dbcdc2361a29567ac313c49f1ec Mon Sep 17 00:00:00 2001 From: lukasIO Date: Mon, 10 Nov 2025 11:04:29 +0100 Subject: [PATCH] Enable singlePC mode for meet also on prod (#493) * Enable singlePC mode for meet also on prod * fix --- app/custom/VideoConferenceClientImpl.tsx | 3 +-- app/rooms/[roomName]/PageClientImpl.tsx | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/custom/VideoConferenceClientImpl.tsx b/app/custom/VideoConferenceClientImpl.tsx index 576db01..8834ce8 100644 --- a/app/custom/VideoConferenceClientImpl.tsx +++ b/app/custom/VideoConferenceClientImpl.tsx @@ -16,7 +16,6 @@ import { KeyboardShortcuts } from '@/lib/KeyboardShortcuts'; import { SettingsMenu } from '@/lib/SettingsMenu'; import { useSetupE2EE } from '@/lib/useSetupE2EE'; import { useLowCPUOptimizer } from '@/lib/usePerfomanceOptimiser'; -import { isMeetStaging } from '@/lib/client-utils'; export function VideoConferenceClientImpl(props: { liveKitUrl: string; @@ -44,7 +43,7 @@ export function VideoConferenceClientImpl(props: { worker, } : undefined, - singlePeerConnection: isMeetStaging(), + singlePeerConnection: true, }; }, [e2eeEnabled, props.codec, keyProvider, worker]); diff --git a/app/rooms/[roomName]/PageClientImpl.tsx b/app/rooms/[roomName]/PageClientImpl.tsx index adccf7b..d31d6bf 100644 --- a/app/rooms/[roomName]/PageClientImpl.tsx +++ b/app/rooms/[roomName]/PageClientImpl.tsx @@ -1,7 +1,7 @@ 'use client'; import React from 'react'; -import { decodePassphrase, isMeetStaging } from '@/lib/client-utils'; +import { decodePassphrase } from '@/lib/client-utils'; import { DebugMode } from '@/lib/Debug'; import { KeyboardShortcuts } from '@/lib/KeyboardShortcuts'; import { RecordingIndicator } from '@/lib/RecordingIndicator'; @@ -129,7 +129,7 @@ function VideoConferenceComponent(props: { adaptiveStream: true, dynacast: true, e2ee: keyProvider && worker && e2eeEnabled ? { keyProvider, worker } : undefined, - singlePeerConnection: isMeetStaging(), + singlePeerConnection: true, }; }, [props.userChoices, props.options.hq, props.options.codec]);