Don't use wall clock for stats
This uses the local NTP clock for RTCP report block stats. This code exists in the version that Mozilla is shipping, with a review here https://phabricator.services.mozilla.com/D127709 . Bug: webrtc:13484 Change-Id: I2f46ec02acab0bbb09040778b05b248c2d815bd1 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/240142 Reviewed-by: Artem Titov <titovartem@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Henrik Boström <hbos@webrtc.org> Cr-Commit-Position: refs/heads/main@{#35787}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
027c793c57
commit
7eac6caeee
@ -662,7 +662,12 @@ void RTCPReceiver::HandleReportBlock(const ReportBlock& report_block,
|
||||
rtcp_report_block.delay_since_last_sender_report =
|
||||
report_block.delay_since_last_sr();
|
||||
rtcp_report_block.last_sender_report_timestamp = report_block.last_sr();
|
||||
report_block_data->SetReportBlock(rtcp_report_block, rtc::TimeUTCMicros());
|
||||
// Number of seconds since 1900 January 1 00:00 GMT (see
|
||||
// https://tools.ietf.org/html/rfc868).
|
||||
report_block_data->SetReportBlock(
|
||||
rtcp_report_block,
|
||||
(clock_->CurrentNtpInMilliseconds() - rtc::kNtpJan1970Millisecs) *
|
||||
rtc::kNumMicrosecsPerMillisec);
|
||||
|
||||
int64_t rtt_ms = 0;
|
||||
uint32_t send_time_ntp = report_block.last_sr();
|
||||
|
||||
Reference in New Issue
Block a user