Expose jitter buffer flushes metric in new getStats api.

Origin trial experiment proposal (new statistic part):
https://docs.google.com/document/d/1stYIZhEmDZ7NJF9gjjsM66eLFJUdc-14a3QutrFbIwI/edit?ts=5bf5535c#

Bug: chromium:907113
Change-Id: I1d005291f9b47665f70c26148dbdcbb55564bef8
Reviewed-on: https://webrtc-review.googlesource.com/c/111505
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Jonas Olsson <jonasolsson@webrtc.org>
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Commit-Queue: Ruslan Burakov <kuddai@google.com>
Cr-Commit-Position: refs/heads/master@{#25768}
This commit is contained in:
Ruslan Burakov
2018-11-22 17:21:10 +01:00
committed by Commit Bot
parent b357e54dd5
commit 8af8896596
12 changed files with 34 additions and 12 deletions

View File

@ -374,7 +374,8 @@ WEBRTC_RTCSTATS_IMPL(RTCMediaStreamTrackStats, RTCStats, "track",
&total_samples_received,
&total_samples_duration,
&concealed_samples,
&concealment_events);
&concealment_events,
&jitter_buffer_flushes);
// clang-format on
RTCMediaStreamTrackStats::RTCMediaStreamTrackStats(const std::string& id,
@ -410,7 +411,8 @@ RTCMediaStreamTrackStats::RTCMediaStreamTrackStats(std::string&& id,
total_samples_received("totalSamplesReceived"),
total_samples_duration("totalSamplesDuration"),
concealed_samples("concealedSamples"),
concealment_events("concealmentEvents") {
concealment_events("concealmentEvents"),
jitter_buffer_flushes("jitterBufferFlushes") {
RTC_DCHECK(kind == RTCMediaStreamTrackKind::kAudio ||
kind == RTCMediaStreamTrackKind::kVideo);
}
@ -442,7 +444,8 @@ RTCMediaStreamTrackStats::RTCMediaStreamTrackStats(
total_samples_received(other.total_samples_received),
total_samples_duration(other.total_samples_duration),
concealed_samples(other.concealed_samples),
concealment_events(other.concealment_events) {}
concealment_events(other.concealment_events),
jitter_buffer_flushes(other.jitter_buffer_flushes) {}
RTCMediaStreamTrackStats::~RTCMediaStreamTrackStats() {}