Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/room/track/LocalVideoTrack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,12 @@ export default class LocalVideoTrack extends LocalTrack {
return;
}

// if best layer has not sent anything, do not downgrade till the
// best layer starts sending something. It is possible that the
// browser has not started some layer(s) due to cpu/bandwidth
// constraints
if (sendStats.framesSent === 0) return;

// if we've upgraded or downgraded recently, give it a bit of time before
// downgrading again
if (this.lastExplicitQualityChange
Expand Down