* WIP commit

* WIP commit

* WIP commit

* WIP commit

* WIP commit

* WIP commit

* Clean up

* Clean up

* Store RTT in stats

* spelling mistake

* Make tests compile

* Fix test compilation error

* fix tests

* clone

* latest protocol
This commit is contained in:
Raja Subramanian
2022-02-08 12:53:14 +05:30
committed by GitHub
parent a6eb4290d3
commit 36289bbca7
23 changed files with 913 additions and 639 deletions
+3 -3
View File
@@ -762,9 +762,9 @@ func (p *ParticipantImpl) GetConnectionQuality() *livekit.ConnectionQualityInfo
}
p.lock.RUnlock()
avgScore := 5.0
avgScore := float32(5.0)
if numTracks > 0 {
avgScore = totalScore / float64(numTracks)
avgScore = totalScore / float32(numTracks)
}
rating := connectionquality.Score2Rating(avgScore)
@@ -1348,7 +1348,7 @@ func (p *ParticipantImpl) setTrackMuted(trackID livekit.TrackID, muted bool) {
}
}
func (p *ParticipantImpl) getPublisherConnectionQuality() (totalScore float64, numTracks int) {
func (p *ParticipantImpl) getPublisherConnectionQuality() (totalScore float32, numTracks int) {
for _, pt := range p.GetPublishedTracks() {
if pt.IsMuted() {
continue