Use local time base for NTP in RTCP Sender Report for downtracks. (#1321)
* Use local time base for NTP in RTCP Sender Report for downtracks. More details in comments in code. * Remove debug * RTCPSenderReportInfo -> RTCPSenderReportDataExt * Get rid of sender report data pointer checks
This commit is contained in:
@@ -633,12 +633,12 @@ func (b *Buffer) SetSenderReportData(rtpTime uint32, ntpTime uint64) {
|
||||
}
|
||||
}
|
||||
|
||||
func (b *Buffer) GetSenderReportData() *RTCPSenderReportData {
|
||||
func (b *Buffer) GetSenderReportDataExt() *RTCPSenderReportDataExt {
|
||||
b.RLock()
|
||||
defer b.RUnlock()
|
||||
|
||||
if b.rtpStats != nil {
|
||||
return b.rtpStats.GetRtcpSenderReportData()
|
||||
return b.rtpStats.GetRtcpSenderReportDataExt()
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user