[Stats] Populate "frames" stats for video source.

Spec: https://www.w3.org/TR/webrtc-stats/#dom-rtcvideosourcestats-frames

Wiring up the "frames" stats with the cumulative fps counter on the video source.

Tests:
./out/Default/peerconnection_unittests
./out/Default/video_engine_tests

Bug: webrtc:12499
Change-Id: I4103f56ed04cb464f5f7e70fbf2d77c25a867a68
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/208782
Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org>
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Henrik Boström <hbos@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#33404}
This commit is contained in:
Di Wu
2021-02-27 00:29:15 -08:00
committed by Commit Bot
parent 5ab9b32ee6
commit 668dbf66ce
9 changed files with 11 additions and 6 deletions

View File

@ -603,7 +603,6 @@ class RTC_EXPORT RTCVideoSourceStats final : public RTCMediaSourceStats {
RTCStatsMember<uint32_t> width;
RTCStatsMember<uint32_t> height;
// TODO(hbos): Implement this metric.
RTCStatsMember<uint32_t> frames;
RTCStatsMember<uint32_t> frames_per_second;
};