Added RTCMediaStreamTrackStats.concealmentEvents

The number of concealment events. This counter increases every time a concealed sample is
synthesized after a non-concealed sample. That is, multiple consecutive concealed samples
will increase the concealedSamples count multiple times but is a single concealment event.

Bug: webrtc:8246
Change-Id: I7ef404edab765218b1f11e3128072c5391e83049
Reviewed-on: https://webrtc-review.googlesource.com/1221
Commit-Queue: Gustaf Ullberg <gustaf@webrtc.org>
Reviewed-by: Henrik Andreassson <henrika@webrtc.org>
Reviewed-by: Fredrik Solenberg <solenberg@webrtc.org>
Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org>
Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org>
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#19881}
This commit is contained in:
Gustaf Ullberg
2017-09-18 09:28:20 +02:00
committed by Commit Bot
parent 35dee81321
commit 9a2e906b0c
20 changed files with 90 additions and 36 deletions

View File

@ -383,7 +383,8 @@ WEBRTC_RTCSTATS_IMPL(RTCMediaStreamTrackStats, RTCStats, "track",
&echo_return_loss_enhancement,
&total_samples_received,
&total_samples_duration,
&concealed_samples);
&concealed_samples,
&concealment_events);
// clang-format on
RTCMediaStreamTrackStats::RTCMediaStreamTrackStats(
@ -416,7 +417,8 @@ RTCMediaStreamTrackStats::RTCMediaStreamTrackStats(std::string&& id,
echo_return_loss_enhancement("echoReturnLossEnhancement"),
total_samples_received("totalSamplesReceived"),
total_samples_duration("totalSamplesDuration"),
concealed_samples("concealedSamples") {
concealed_samples("concealedSamples"),
concealment_events("concealmentEvents") {
RTC_DCHECK(kind == RTCMediaStreamTrackKind::kAudio ||
kind == RTCMediaStreamTrackKind::kVideo);
}
@ -445,7 +447,8 @@ RTCMediaStreamTrackStats::RTCMediaStreamTrackStats(
echo_return_loss_enhancement(other.echo_return_loss_enhancement),
total_samples_received(other.total_samples_received),
total_samples_duration(other.total_samples_duration),
concealed_samples(other.concealed_samples) {}
concealed_samples(other.concealed_samples),
concealment_events(other.concealment_events) {}
RTCMediaStreamTrackStats::~RTCMediaStreamTrackStats() {
}