Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: webrtc/api/rtcstatscollector.cc

Issue 2642713004: RTCMediaStreamTrackStats.framesDecoded collected. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/api/rtcstatscollector.cc
diff --git a/webrtc/api/rtcstatscollector.cc b/webrtc/api/rtcstatscollector.cc
index 216a5ac29916869530c9674659fbd135678fc0e4..12e81d95e6ecae83bec0e2c78e9d8eb5e4da80f7 100644
--- a/webrtc/api/rtcstatscollector.cc
+++ b/webrtc/api/rtcstatscollector.cc
@@ -436,6 +436,11 @@ ProduceMediaStreamTrackStatsFromVideoReceiverInfo(
video_track_stats->frame_height = static_cast<uint32_t>(
video_receiver_info.frame_height);
}
+ // 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;
}

Powered by Google App Engine
This is Rietveld 408576698