Implement packets_(sent | received) for RTCTransportStats
Bug: webrtc:11756 Change-Id: Ic0caad6d4675969ef3ae886f50326e4a2e1cbfe7 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/178741 Reviewed-by: Tommi <tommi@webrtc.org> Reviewed-by: Henrik Boström <hbos@webrtc.org> Commit-Queue: Artem Titov <titovartem@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31643}
This commit is contained in:
@ -906,7 +906,9 @@ RTCVideoSourceStats::~RTCVideoSourceStats() {}
|
||||
// clang-format off
|
||||
WEBRTC_RTCSTATS_IMPL(RTCTransportStats, RTCStats, "transport",
|
||||
&bytes_sent,
|
||||
&packets_sent,
|
||||
&bytes_received,
|
||||
&packets_received,
|
||||
&rtcp_transport_stats_id,
|
||||
&dtls_state,
|
||||
&selected_candidate_pair_id,
|
||||
@ -925,7 +927,9 @@ RTCTransportStats::RTCTransportStats(const std::string& id,
|
||||
RTCTransportStats::RTCTransportStats(std::string&& id, int64_t timestamp_us)
|
||||
: RTCStats(std::move(id), timestamp_us),
|
||||
bytes_sent("bytesSent"),
|
||||
packets_sent("packetsSent"),
|
||||
bytes_received("bytesReceived"),
|
||||
packets_received("packetsReceived"),
|
||||
rtcp_transport_stats_id("rtcpTransportStatsId"),
|
||||
dtls_state("dtlsState"),
|
||||
selected_candidate_pair_id("selectedCandidatePairId"),
|
||||
@ -939,7 +943,9 @@ RTCTransportStats::RTCTransportStats(std::string&& id, int64_t timestamp_us)
|
||||
RTCTransportStats::RTCTransportStats(const RTCTransportStats& other)
|
||||
: RTCStats(other.id(), other.timestamp_us()),
|
||||
bytes_sent(other.bytes_sent),
|
||||
packets_sent(other.packets_sent),
|
||||
bytes_received(other.bytes_received),
|
||||
packets_received(other.packets_received),
|
||||
rtcp_transport_stats_id(other.rtcp_transport_stats_id),
|
||||
dtls_state(other.dtls_state),
|
||||
selected_candidate_pair_id(other.selected_candidate_pair_id),
|
||||
|
Reference in New Issue
Block a user