Simplifying (hopefully) sfu.DownTrack (#213)
* Simplifying (hopefully) sfu.DownTrack * Remove unnecessary check as pdding only packets are dropped before that check * Temporal filtering max layer * - Split out forwarder bits into a separate structure - Address comments from Jie and David * Remove debug and unneeded stuff * Fix test * Remove unneeded default initialization
This commit is contained in:
@@ -707,8 +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() {
|
||||
if subTrack.DownTrack().GetForwardingStatus() != sfu.ForwardingStatusOptimal {
|
||||
reducedQualitySub = true
|
||||
}
|
||||
subLoss += subTrack.SubscribeLossPercentage()
|
||||
|
||||
Reference in New Issue
Block a user