| Index: webrtc/pc/rtcstatscollector.cc
|
| diff --git a/webrtc/pc/rtcstatscollector.cc b/webrtc/pc/rtcstatscollector.cc
|
| index ca995327d5f21d19623e36c290c5a2941f1df431..b4f03d1f2ea765e5b9fef5bfe9946cf38dcc439d 100644
|
| --- a/webrtc/pc/rtcstatscollector.cc
|
| +++ b/webrtc/pc/rtcstatscollector.cc
|
| @@ -374,6 +374,9 @@ ProduceMediaStreamTrackStatsFromVoiceSenderInfo(
|
| audio_track_stats->audio_level = DoubleAudioLevelFromIntAudioLevel(
|
| voice_sender_info.audio_level);
|
| }
|
| + audio_track_stats->total_audio_energy = voice_sender_info.total_output_energy;
|
| + audio_track_stats->total_samples_duration =
|
| + voice_sender_info.total_output_duration;
|
| if (voice_sender_info.echo_return_loss != -100) {
|
| audio_track_stats->echo_return_loss = static_cast<double>(
|
| voice_sender_info.echo_return_loss);
|
| @@ -405,6 +408,10 @@ ProduceMediaStreamTrackStatsFromVoiceReceiverInfo(
|
| audio_track_stats->audio_level = DoubleAudioLevelFromIntAudioLevel(
|
| voice_receiver_info.audio_level);
|
| }
|
| + audio_track_stats->total_audio_energy =
|
| + voice_receiver_info.total_output_energy;
|
| + audio_track_stats->total_samples_duration =
|
| + voice_receiver_info.total_output_duration;
|
| return audio_track_stats;
|
| }
|
|
|
|
|