Stream allocator fixes (#212)

* Stream allocator fixes

- Treat simple track like simulcast track with one layer to make
it stream allocator friendly.

* Address David's comments
This commit is contained in:
Raja Subramanian
2021-11-27 09:22:39 +05:30
committed by GitHub
parent dc60e27413
commit 092789a08f
8 changed files with 268 additions and 214 deletions
+1
View File
@@ -707,6 +707,7 @@ func (p *ParticipantImpl) GetConnectionQuality() livekit.ConnectionQuality {
if subTrack.IsMuted() {
continue
}
// LK-TODO: maybe this should check CurrentSpatialLayer as target may not have been achieved
if subTrack.DownTrack().TargetSpatialLayer() < subTrack.DownTrack().MaxSpatialLayer() {
reducedQualitySub = true
}