Reland: Fix echo return loss stats and add to RTCAudioSourceStats.
Relanding after adding to chromium stats whitelist: https://chromium-review.googlesource.com/c/chromium/src/+/2983329 This solves two problems: * Echo return loss stats weren't being gathered in Chrome, because they need to be taken from the audio processor attached to the track rather than the audio send stream. * The standardized location is in RTCAudioSourceStats, not RTCMediaStreamTrackStats. For now, will populate the stats in both locations. Bug: webrtc:12770 Change-Id: I3633ee428d07b283b0cc503a84d8fa2e79415dfb Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/223761 Reviewed-by: Henrik Boström <hbos@webrtc.org> Commit-Queue: Taylor Brandstetter <deadbeef@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34367}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
a987429500
commit
64851c0bfb
@ -987,7 +987,9 @@ RTCMediaSourceStats::~RTCMediaSourceStats() {}
|
||||
WEBRTC_RTCSTATS_IMPL(RTCAudioSourceStats, RTCMediaSourceStats, "media-source",
|
||||
&audio_level,
|
||||
&total_audio_energy,
|
||||
&total_samples_duration)
|
||||
&total_samples_duration,
|
||||
&echo_return_loss,
|
||||
&echo_return_loss_enhancement)
|
||||
// clang-format on
|
||||
|
||||
RTCAudioSourceStats::RTCAudioSourceStats(const std::string& id,
|
||||
@ -998,13 +1000,17 @@ RTCAudioSourceStats::RTCAudioSourceStats(std::string&& id, int64_t timestamp_us)
|
||||
: RTCMediaSourceStats(std::move(id), timestamp_us),
|
||||
audio_level("audioLevel"),
|
||||
total_audio_energy("totalAudioEnergy"),
|
||||
total_samples_duration("totalSamplesDuration") {}
|
||||
total_samples_duration("totalSamplesDuration"),
|
||||
echo_return_loss("echoReturnLoss"),
|
||||
echo_return_loss_enhancement("echoReturnLossEnhancement") {}
|
||||
|
||||
RTCAudioSourceStats::RTCAudioSourceStats(const RTCAudioSourceStats& other)
|
||||
: RTCMediaSourceStats(other),
|
||||
audio_level(other.audio_level),
|
||||
total_audio_energy(other.total_audio_energy),
|
||||
total_samples_duration(other.total_samples_duration) {}
|
||||
total_samples_duration(other.total_samples_duration),
|
||||
echo_return_loss(other.echo_return_loss),
|
||||
echo_return_loss_enhancement(other.echo_return_loss_enhancement) {}
|
||||
|
||||
RTCAudioSourceStats::~RTCAudioSourceStats() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user