Implement RTCOutboundRtpStreamStats.retransmitted[Bytes/Packets]Sent.
Spec: https://w3c.github.io/webrtc-stats/#dom-rtcoutboundrtpstreamstats-retransmittedpacketssent These are already existed in StreamDataCounters. This CL takes care of the plumbing of these values to the standard stats collector. TBR=solenberg@webrtc.org Bug: webrtc:10447 Change-Id: I27d6c3ee3ab627d306303e6ee67e586ddf31cc81 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/132012 Commit-Queue: Henrik Boström <hbos@webrtc.org> Reviewed-by: Åsa Persson <asapersson@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27663}
This commit is contained in:

committed by
Commit Bot

parent
decc07679d
commit
cf96e0f87d
@ -652,7 +652,9 @@ RTCInboundRTPStreamStats::~RTCInboundRTPStreamStats() {}
|
||||
WEBRTC_RTCSTATS_IMPL(
|
||||
RTCOutboundRTPStreamStats, RTCRTPStreamStats, "outbound-rtp",
|
||||
&packets_sent,
|
||||
&retransmitted_packets_sent,
|
||||
&bytes_sent,
|
||||
&retransmitted_bytes_sent,
|
||||
&target_bitrate,
|
||||
&frames_encoded,
|
||||
&total_encode_time,
|
||||
@ -667,7 +669,9 @@ RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats(std::string&& id,
|
||||
int64_t timestamp_us)
|
||||
: RTCRTPStreamStats(std::move(id), timestamp_us),
|
||||
packets_sent("packetsSent"),
|
||||
retransmitted_packets_sent("retransmittedPacketsSent"),
|
||||
bytes_sent("bytesSent"),
|
||||
retransmitted_bytes_sent("retransmittedBytesSent"),
|
||||
target_bitrate("targetBitrate"),
|
||||
frames_encoded("framesEncoded"),
|
||||
total_encode_time("totalEncodeTime"),
|
||||
@ -677,7 +681,9 @@ RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats(
|
||||
const RTCOutboundRTPStreamStats& other)
|
||||
: RTCRTPStreamStats(other),
|
||||
packets_sent(other.packets_sent),
|
||||
retransmitted_packets_sent(other.retransmitted_packets_sent),
|
||||
bytes_sent(other.bytes_sent),
|
||||
retransmitted_bytes_sent(other.retransmitted_bytes_sent),
|
||||
target_bitrate(other.target_bitrate),
|
||||
frames_encoded(other.frames_encoded),
|
||||
total_encode_time(other.total_encode_time),
|
||||
|
Reference in New Issue
Block a user