Reduce RED weight in half. (#2648)

This commit is contained in:
Raja Subramanian
2024-04-12 20:39:53 +05:30
committed by GitHub
parent 990cf6877b
commit ec41d20f81
2 changed files with 12 additions and 12 deletions
+4 -4
View File
@@ -379,7 +379,7 @@ func (cs *ConnectionStats) updateStatsWorker() {
// For audio:
//
// o Opus without FEC or RED suffers the most through packet loss, hence has the highest weight
// o RED with two packet redundancy can absorb two out of every three packets lost, so packet loss is not as detrimental and therefore lower weight
// o RED with two packet redundancy can absorb one out of every two packets lost, so packet loss is not as detrimental and therefore lower weight
//
// For video:
//
@@ -396,10 +396,10 @@ func getPacketLossWeight(mimeType string, isFecEnabled bool) float64 {
}
case strings.EqualFold(mimeType, "audio/red"):
// 10%: fall to GOOD, 30.0%: fall to POOR
plw = 2.0
// 5%: fall to GOOD, 15.0%: fall to POOR
plw = 4.0
if isFecEnabled {
// 15%: fall to GOOD, 45.0%: fall to POOR
// 7.5%: fall to GOOD, 22.5%: fall to POOR
plw /= 1.5
}