Log a bit more in sender report warp report. (#1888)
This commit is contained in:
@@ -888,8 +888,9 @@ func (r *RTPStats) GetRtcpSenderReport(ssrc uint32, calculatedClockRate uint32)
|
|||||||
tsCycles++
|
tsCycles++
|
||||||
}
|
}
|
||||||
nowRTPExt := getExtTS(nowRTP, tsCycles)
|
nowRTPExt := getExtTS(nowRTP, tsCycles)
|
||||||
|
var nowRTPExtUsingRate uint64
|
||||||
if calculatedClockRate != 0 {
|
if calculatedClockRate != 0 {
|
||||||
nowRTPExtUsingRate := r.extStartTS + uint64(float64(calculatedClockRate)*timeSinceFirst.Seconds())
|
nowRTPExtUsingRate = r.extStartTS + uint64(float64(calculatedClockRate)*timeSinceFirst.Seconds())
|
||||||
if nowRTPExtUsingRate > nowRTPExt {
|
if nowRTPExtUsingRate > nowRTPExt {
|
||||||
nowRTPExt = nowRTPExtUsingRate
|
nowRTPExt = nowRTPExtUsingRate
|
||||||
nowRTP = uint32(nowRTPExtUsingRate)
|
nowRTP = uint32(nowRTPExtUsingRate)
|
||||||
@@ -939,6 +940,9 @@ func (r *RTPStats) GetRtcpSenderReport(ssrc uint32, calculatedClockRate uint32)
|
|||||||
"reportDrift", reportDriftResult.String(),
|
"reportDrift", reportDriftResult.String(),
|
||||||
"highestTS", r.highestTS,
|
"highestTS", r.highestTS,
|
||||||
"highestTime", r.highestTime.String(),
|
"highestTime", r.highestTime.String(),
|
||||||
|
"calculatedClockRate", calculatedClockRate,
|
||||||
|
"nowRTPExt", nowRTPExt,
|
||||||
|
"nowRTPExtUsingRate", nowRTPExtUsingRate,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user