Add jitterBufferDelay and jitterBufferEmittedCount stats for video
Bug: webrtc:10450
Change-Id: I6f586a3c6781450b9bfdcc31dc3f49f6289d70e0
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/138265
Commit-Queue: Henrik Boström <hbos@webrtc.org>
Reviewed-by: Magnus Flodman <mflodman@webrtc.org>
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#28096}
diff --git a/pc/rtc_stats_collector.cc b/pc/rtc_stats_collector.cc
index 4386579..c180dd6 100644
--- a/pc/rtc_stats_collector.cc
+++ b/pc/rtc_stats_collector.cc
@@ -675,6 +675,10 @@
video_track_stats->frame_height = static_cast<uint32_t>(
video_receiver_info.frame_height);
}
+ video_track_stats->jitter_buffer_delay =
+ video_receiver_info.jitter_buffer_delay_seconds;
+ video_track_stats->jitter_buffer_emitted_count =
+ video_receiver_info.jitter_buffer_emitted_count;
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