Move pause and freeze metrics to standardized location.
These metrics were recently standardized. Part of the standardization effort was to move them from obsolete "track" stats (on track for deprecation and removal: https://crbug.com/webrtc/14175) into the "inbound-rtp" stats which are not deprecated. To ease transition for downstream projects, the metrics are temporarily duplicated in both the old and new locations. In a follow-up CL, they will be deleted from "track". Bug: webrtc:14521 Change-Id: I0d9036472607a8c717ec823a458a79a49ddb80c7 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/278080 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Henrik Boström <hbos@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38308}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
7fe7091f8a
commit
c57a28c46b
@ -357,12 +357,13 @@ class RTC_EXPORT RTCMediaStreamTrackStats final : public RTCStats {
|
||||
RTCNonStandardStatsMember<double> total_interruption_duration;
|
||||
// Non-standard video-only members.
|
||||
// https://w3c.github.io/webrtc-provisional-stats/#dom-rtcvideoreceiverstats
|
||||
RTCNonStandardStatsMember<double> total_frames_duration;
|
||||
RTCNonStandardStatsMember<double> sum_squared_frame_durations;
|
||||
// TODO(crbug.com/webrtc/14521): These metrics have been moved, delete them.
|
||||
RTCNonStandardStatsMember<uint32_t> freeze_count;
|
||||
RTCNonStandardStatsMember<uint32_t> pause_count;
|
||||
RTCNonStandardStatsMember<double> total_freezes_duration;
|
||||
RTCNonStandardStatsMember<double> total_pauses_duration;
|
||||
RTCNonStandardStatsMember<double> total_frames_duration;
|
||||
RTCNonStandardStatsMember<double> sum_squared_frame_durations;
|
||||
};
|
||||
|
||||
// https://w3c.github.io/webrtc-stats/#pcstats-dict*
|
||||
@ -485,6 +486,10 @@ class RTC_EXPORT RTCInboundRTPStreamStats final
|
||||
RTCNonStandardStatsMember<uint32_t> frames_assembled_from_multiple_packets;
|
||||
RTCStatsMember<double> total_inter_frame_delay;
|
||||
RTCStatsMember<double> total_squared_inter_frame_delay;
|
||||
RTCStatsMember<uint32_t> pause_count;
|
||||
RTCStatsMember<double> total_pauses_duration;
|
||||
RTCStatsMember<uint32_t> freeze_count;
|
||||
RTCStatsMember<double> total_freezes_duration;
|
||||
// https://w3c.github.io/webrtc-provisional-stats/#dom-rtcinboundrtpstreamstats-contenttype
|
||||
RTCStatsMember<std::string> content_type;
|
||||
// Only populated if audio/video sync is enabled.
|
||||
|
||||
Reference in New Issue
Block a user