Cleaning up smoothed OWD calculation for sender report. (#1684)

* Keep track of expected RTP time stamp and control drift.

- Use monotonic clock in RTCP Sender Report and packet times
- Keep the time stamp close to expected time stamp on layer/SSRC
  switches

* clean up

* fix test compile

* more test compile failures

* anticipatory clean up

* further clean up

* add received sender report logging
This commit is contained in:
Raja Subramanian
2023-05-05 13:14:12 +05:30
committed by GitHub
parent e00ff50cd6
commit 25d6fd751f
7 changed files with 80 additions and 167 deletions
+2 -2
View File
@@ -668,12 +668,12 @@ func (b *Buffer) SetSenderReportData(rtpTime uint32, ntpTime uint64) {
}
}
func (b *Buffer) GetSenderReportDataExt() *RTCPSenderReportDataExt {
func (b *Buffer) GetSenderReportData() *RTCPSenderReportData {
b.RLock()
defer b.RUnlock()
if b.rtpStats != nil {
return b.rtpStats.GetRtcpSenderReportDataExt()
return b.rtpStats.GetRtcpSenderReportData()
}
return nil