Skip to content

Commit

Permalink
fix: ignore maxSimulcastLayers override for SVC codecs (#1564)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverlaz authored Nov 7, 2024
1 parent 461a48e commit 48f8abe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/client/src/rtc/videoLayers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ export const findOptimalVideoLayers = (
let downscaleFactor = 1;
let bitrateFactor = 1;
const svcCodec = isSvcCodec(codecInUse);
for (const rid of ['f', 'h', 'q'].slice(0, Math.min(3, maxSimulcastLayers))) {
const totalLayers = svcCodec ? 3 : Math.min(3, maxSimulcastLayers);
for (const rid of ['f', 'h', 'q'].slice(0, totalLayers)) {
const layer: OptimalVideoLayer = {
active: true,
rid,
Expand Down

0 comments on commit 48f8abe

Please sign in to comment.