Skip to content

Commit

Permalink
fix: respect codec overrides when computing the layers
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverlaz committed Nov 20, 2024
1 parent 3d115dd commit a864e94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/client/src/rtc/Publisher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,8 @@ export class Publisher {
settings?.screensharing.target_resolution?.bitrate;

const publishOpts = opts || this.publishOptsForTrack.get(trackType);
const codecInUse = getOptimalVideoCodec(publishOpts?.preferredCodec);
const codecInUse =
opts?.forceCodec || getOptimalVideoCodec(opts?.preferredCodec);
return trackType === TrackType.VIDEO
? findOptimalVideoLayers(track, targetResolution, codecInUse, publishOpts)
: trackType === TrackType.SCREEN_SHARE
Expand Down

0 comments on commit a864e94

Please sign in to comment.