DownTrack scoring when RR is not received. (#1664)

This commit is contained in:
Raja Subramanian
2023-04-28 14:50:06 +05:30
committed by GitHub
parent 3f3b02357c
commit 50ab72a5f8
4 changed files with 249 additions and 180 deletions
+2
View File
@@ -12,6 +12,7 @@ import (
const (
MaxMOS = float32(4.5)
MinMOS = float32(1.0)
maxScore = float64(100.0)
poorScore = float64(30.0)
@@ -362,6 +363,7 @@ func (q *qualityScorer) getPacketLossWeight(stat *windowStat) float64 {
pps := float64(stat.packetsExpected) / stat.duration.Seconds()
if pps > q.maxPPS {
q.maxPPS = pps
q.params.Logger.Debugw("updating maxPPS", "expected", stat.packetsExpected, "duration", stat.duration.Seconds(), "pps", pps)
}
if q.maxPPS == 0 {