Aggregate method for RTPDeltaInfo (#1562)
This commit is contained in:
@@ -59,10 +59,18 @@ func TestConnectionQuality(t *testing.T) {
|
||||
RTPStats: &buffer.RTPDeltaInfo{
|
||||
StartTime: now,
|
||||
Duration: duration,
|
||||
Packets: 250,
|
||||
Packets: 120,
|
||||
PacketsLost: 30,
|
||||
},
|
||||
},
|
||||
2: {
|
||||
RTPStats: &buffer.RTPDeltaInfo{
|
||||
StartTime: now,
|
||||
Duration: duration,
|
||||
Packets: 130,
|
||||
PacketsLost: 0,
|
||||
},
|
||||
},
|
||||
}
|
||||
cs.updateScore(streams, now.Add(duration))
|
||||
mos, quality = cs.GetScoreAndQuality()
|
||||
|
||||
Reference in New Issue
Block a user