Populate qualityLimitationDurations stats for outbound RTP streams

Spec: https://w3c.github.io/webrtc-stats/#dom-rtcoutboundrtpstreamstats-qualitylimitationdurations
Tested in chromium using wpt/webrtc-stats.

Bug: webrtc:10686
Change-Id: I05ac344e6caa7a663675de4c06ccfd17e1efb6ee
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/219300
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Commit-Queue: Henrik Boström <hbos@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#34179}
This commit is contained in:
Byoungchan Lee
2021-05-28 21:32:04 +09:00
committed by WebRTC LUCI CQ
parent 7b4fd5ca59
commit 7d23535108
5 changed files with 28 additions and 3 deletions

View File

@ -811,6 +811,7 @@ WEBRTC_RTCSTATS_IMPL(
&huge_frames_sent,
&total_packet_send_delay,
&quality_limitation_reason,
&quality_limitation_durations,
&quality_limitation_resolution_changes,
&content_type,
&encoder_implementation,
@ -847,6 +848,7 @@ RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats(std::string&& id,
huge_frames_sent("hugeFramesSent"),
total_packet_send_delay("totalPacketSendDelay"),
quality_limitation_reason("qualityLimitationReason"),
quality_limitation_durations("qualityLimitationDurations"),
quality_limitation_resolution_changes(
"qualityLimitationResolutionChanges"),
content_type("contentType"),
@ -879,6 +881,7 @@ RTCOutboundRTPStreamStats::RTCOutboundRTPStreamStats(
huge_frames_sent(other.huge_frames_sent),
total_packet_send_delay(other.total_packet_send_delay),
quality_limitation_reason(other.quality_limitation_reason),
quality_limitation_durations(other.quality_limitation_durations),
quality_limitation_resolution_changes(
other.quality_limitation_resolution_changes),
content_type(other.content_type),