Skip to content

Commit

Permalink
fix: don't send none when degraded
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 committed Sep 23, 2024
1 parent e83f9b0 commit a1a7b00
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export class HMSRemoteVideoTrack extends HMSVideoTrack {

private async updateLayer(source: string) {
const newLayer =
(this.degraded || !this.enabled || !this.hasSinks()) && !this.disableNoneLayerRequest
(!this.enabled || !this.hasSinks()) && !this.disableNoneLayerRequest
? HMSSimulcastLayer.NONE
: this.preferredLayer;
if (!this.shouldSendVideoLayer(newLayer, source)) {
Expand Down

0 comments on commit a1a7b00

Please sign in to comment.