Disable red when e2ee is enabled (#114)

* disable red when e2ee is enabled

* disable red when e2ee is enabled
This commit is contained in:
lukasIO 2023-09-01 08:44:54 +02:00 committed by GitHub
parent 0c7ef87168
commit acfff6f8ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -28,6 +28,7 @@ export default function CustomRoomConnection() {
return {
publishDefaults: {
videoSimulcastLayers: [VideoPresets.h540, VideoPresets.h216],
red: !e2eeEnabled,
},
adaptiveStream: { pixelDensity: 'screen' },
dynacast: true,

View file

@ -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,