In RtcpTransceiver use TimeDelta instead of raw int to represent time

Bug: webrtc:8239, webrtc:13757
Change-Id: Idda3fe5761665b4b3fedaf2dd1a28bb0119ae1f1
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/252287
Reviewed-by: Emil Lundmark <lndmrk@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#36094}
This commit is contained in:
Danil Chapovalov
2022-02-23 20:15:20 +01:00
committed by WebRTC LUCI CQ
parent 9af4aa7cf4
commit c2b1bad4c8
5 changed files with 26 additions and 26 deletions

View File

@ -149,10 +149,10 @@ struct RtcpTransceiverConfig {
// Initial state if `outgoing_transport` ready to accept packets.
bool initial_ready_to_send = true;
// Delay before 1st periodic compound packet.
int initial_report_delay_ms = 500;
TimeDelta initial_report_delay = TimeDelta::Millis(500);
// Period between periodic compound packets.
int report_period_ms = 1000;
TimeDelta report_period = TimeDelta::Seconds(1);
//
// Flags for features and experiments.