RTCMediaStreamTrackStats.framesDecoded collected.
According to spec:
https://w3c.github.io/webrtc-stats/#dom-rtcmediastreamtrackstats-framesdecoded
BUG=webrtc:6757, chromium:659137, chromium:627816
Review-Url: https://codereview.webrtc.org/2642713004
Cr-Commit-Position: refs/heads/master@{#16192}
diff --git a/webrtc/api/rtcstatscollector.cc b/webrtc/api/rtcstatscollector.cc
index 27afcc1..e7929cb 100644
--- a/webrtc/api/rtcstatscollector.cc
+++ b/webrtc/api/rtcstatscollector.cc
@@ -440,6 +440,11 @@
video_receiver_info.frame_height);
}
video_track_stats->frames_received = video_receiver_info.frames_received;
+ // TODO(hbos): When we support receiving simulcast, this should be the total
+ // number of frames correctly decoded, independent of which SSRC it was
+ // received from. Since we don't support that, this is correct and is the same
+ // value as "RTCInboundRTPStreamStats.framesDecoded". crbug.com/659137
+ video_track_stats->frames_decoded = video_receiver_info.frames_decoded;
return video_track_stats;
}