From 09b5d12b0c372e24c2d9c4fa5798b4cb2ec66b81 Mon Sep 17 00:00:00 2001 From: cnderrauber Date: Mon, 2 Sep 2024 15:40:11 +0000 Subject: [PATCH] Set default scalabilityMode to L3T3_KEY in sample (#1238) * Set default scalabilityMode to L3T3_KEY in sample * changset --- .changeset/metal-pens-yawn.md | 5 +++++ example/sample.ts | 3 +-- src/room/track/options.ts | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 .changeset/metal-pens-yawn.md diff --git a/.changeset/metal-pens-yawn.md b/.changeset/metal-pens-yawn.md new file mode 100644 index 0000000000..5b9d7dde4a --- /dev/null +++ b/.changeset/metal-pens-yawn.md @@ -0,0 +1,5 @@ +--- +'livekit-client': patch +--- + +Set default scalabilityMode to L3T3_KEY in sample/comment diff --git a/example/sample.ts b/example/sample.ts index 06564475b4..b727734a7d 100644 --- a/example/sample.ts +++ b/example/sample.ts @@ -99,7 +99,7 @@ const appActions = { red: true, forceStereo: false, screenShareEncoding: ScreenSharePresets.h1080fps30.encoding, - scalabilityMode: 'L3T3', + scalabilityMode: 'L3T3_KEY', }, videoCaptureDefaults: { resolution: VideoPresets.h720.resolution, @@ -107,7 +107,6 @@ const appActions = { e2ee: e2eeEnabled ? { keyProvider: state.e2eeKeyProvider, worker: new E2EEWorker() } : undefined, - fastPublish: true, }; if ( roomOpts.publishDefaults?.videoCodec === 'av1' || diff --git a/src/room/track/options.ts b/src/room/track/options.ts index 6ed9527626..143a0ed255 100644 --- a/src/room/track/options.ts +++ b/src/room/track/options.ts @@ -64,7 +64,7 @@ export interface TrackPublishDefaults { simulcast?: boolean; /** - * scalability mode for svc codecs, defaults to 'L3T3'. + * scalability mode for svc codecs, defaults to 'L3T3_KEY'. * for svc codecs, simulcast is disabled. */ scalabilityMode?: ScalabilityMode;