Skip to content

Commit

Permalink
revert: change'
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 committed Sep 19, 2024
1 parent a473d52 commit e83f9b0
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,17 +163,8 @@ export class HMSRemoteVideoTrack extends HMSVideoTrack {
isDegraded=${this._degraded}`,
);
const stream = this.stream as HMSRemoteStream;
// There are cases where none is requested just after this
if (
stream.getVideoLayer() === HMSSimulcastLayer.NONE &&
this.hasSinks() &&
currentLayer !== HMSSimulcastLayer.NONE
) {
this.updateLayer('setLayerFromServer');
}
// No need to send preferLayer update, as server has done it already
stream.setVideoLayerLocally(currentLayer, this.logIdentifier, 'setLayerFromServer');

this.pushInHistory(`sfuLayerUpdate-${currentLayer}`);
return this._degraded;
}
Expand Down

0 comments on commit e83f9b0

Please sign in to comment.