From e74f168a4ed7ecbabd071abe14d2231334e0f7a5 Mon Sep 17 00:00:00 2001 From: fkwp Date: Wed, 18 Jun 2025 21:12:12 +0200 Subject: [PATCH] trying different resolutions --- src/livekit/options.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/livekit/options.ts b/src/livekit/options.ts index a5b08639..f1e70cd2 100644 --- a/src/livekit/options.ts +++ b/src/livekit/options.ts @@ -19,7 +19,7 @@ const VideoPresetsH264 = { h144: new VideoPreset(176, 144, 120_000, 20), h240: new VideoPreset(320, 240, 120_000, 20), h176: new VideoPreset(320, 176, 160_000, 20), - h288: new VideoPreset(512, 288, 180_000, 20), + h288: new VideoPreset(382, 288, 180_000, 20), h360: VideoPresets.h360, } as const; @@ -32,14 +32,13 @@ const defaultLiveKitPublishOptions: TrackPublishDefaults = { forceStereo: false, simulcast: true, videoSimulcastLayers: [ - VideoPresetsH264.h240, VideoPresetsH264.h360, ] as VideoPreset[], screenShareEncoding: ScreenSharePresets.h1080fps30.encoding, stopMicTrackOnMute: false, videoCodec: "h264", videoEncoding: VideoPresets.h720.encoding, - backupCodec: { codec: "h264", encoding: VideoPresets.h720.encoding }, + backupCodec: { codec: "vp8", encoding: VideoPresets.h720.encoding }, } as const; export const defaultLiveKitOptions: RoomOptions = {