From acfff6f8acf43258c985d7a2fadc018c036b6a69 Mon Sep 17 00:00:00 2001 From: lukasIO Date: Fri, 1 Sep 2023 08:44:54 +0200 Subject: [PATCH] Disable red when e2ee is enabled (#114) * disable red when e2ee is enabled * disable red when e2ee is enabled --- pages/custom/index.tsx | 1 + pages/rooms/[name].tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/pages/custom/index.tsx b/pages/custom/index.tsx index 93b85a8..eb80620 100644 --- a/pages/custom/index.tsx +++ b/pages/custom/index.tsx @@ -28,6 +28,7 @@ export default function CustomRoomConnection() { return { publishDefaults: { videoSimulcastLayers: [VideoPresets.h540, VideoPresets.h216], + red: !e2eeEnabled, }, adaptiveStream: { pixelDensity: 'screen' }, dynacast: true, diff --git a/pages/rooms/[name].tsx b/pages/rooms/[name].tsx index db5c7a5..27bac63 100644 --- a/pages/rooms/[name].tsx +++ b/pages/rooms/[name].tsx @@ -104,6 +104,7 @@ const ActiveRoom = ({ roomName, userChoices, onLeave }: ActiveRoomProps) => { hq === 'true' ? [VideoPresets.h1080, VideoPresets.h720] : [VideoPresets.h540, VideoPresets.h216], + red: !e2eeEnabled, }, audioCaptureDefaults: { deviceId: userChoices.audioDeviceId ?? undefined,