Add a clock to be used for getting the NTP time in RtcpTransceiverConfig.

Note: google3 needs to set this clock before we can start using it.

Bug: webrtc:11327
Change-Id: I0436c6633976afe208f28601fdfd50e0f6f54d6e
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/214480
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Commit-Queue: Paul Hallak <phallak@google.com>
Cr-Commit-Position: refs/heads/master@{#33653}
This commit is contained in:
Paul Hallak
2021-04-08 13:58:23 +02:00
committed by Commit Bot
parent 314b78d467
commit e9dad5f053

View File

@ -17,6 +17,7 @@
#include "api/task_queue/task_queue_base.h" #include "api/task_queue/task_queue_base.h"
#include "api/video/video_bitrate_allocation.h" #include "api/video/video_bitrate_allocation.h"
#include "modules/rtp_rtcp/include/rtp_rtcp_defines.h" #include "modules/rtp_rtcp/include/rtp_rtcp_defines.h"
#include "system_wrappers/include/clock.h"
#include "system_wrappers/include/ntp_time.h" #include "system_wrappers/include/ntp_time.h"
namespace webrtc { namespace webrtc {
@ -61,6 +62,9 @@ struct RtcpTransceiverConfig {
// Maximum packet size outgoing transport accepts. // Maximum packet size outgoing transport accepts.
size_t max_packet_size = 1200; size_t max_packet_size = 1200;
// The clock to use when querying for the NTP time. Should be set.
Clock* clock = nullptr;
// Transport to send rtcp packets to. Should be set. // Transport to send rtcp packets to. Should be set.
Transport* outgoing_transport = nullptr; Transport* outgoing_transport = nullptr;