Split out mediatransportutil (#1071)

This commit is contained in:
Raja Subramanian
2022-10-06 23:55:59 +05:30
committed by GitHub
parent c3120679e6
commit 792349cc56
19 changed files with 30 additions and 1568 deletions
+2 -1
View File
@@ -15,6 +15,7 @@ import (
"github.com/pion/webrtc/v3"
"go.uber.org/atomic"
"github.com/livekit/mediatransportutil"
"github.com/livekit/protocol/livekit"
"github.com/livekit/protocol/logger"
@@ -1129,7 +1130,7 @@ func (d *DownTrack) handleRTCP(bytes []byte) {
}
rr.Reports = append(rr.Reports, r)
rtt := getRttMs(&r)
rtt := mediatransportutil.GetRttMs(&r)
if rtt != d.rtpStats.GetRtt() {
rttToReport = rtt
}