summaryrefslogtreecommitdiffstats
path: root/third_party/libwebrtc/webrtc/api/mediastreaminterface.cc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
commit2aa4a82499d4becd2284cdb482213d541b8804dd (patch)
treeb80bf8bf13c3766139fbacc530efd0dd9d54394c /third_party/libwebrtc/webrtc/api/mediastreaminterface.cc
parentInitial commit. (diff)
downloadfirefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz
firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/libwebrtc/webrtc/api/mediastreaminterface.cc')
-rw-r--r--third_party/libwebrtc/webrtc/api/mediastreaminterface.cc39
1 files changed, 39 insertions, 0 deletions
diff --git a/third_party/libwebrtc/webrtc/api/mediastreaminterface.cc b/third_party/libwebrtc/webrtc/api/mediastreaminterface.cc
new file mode 100644
index 0000000000..4821da83b3
--- /dev/null
+++ b/third_party/libwebrtc/webrtc/api/mediastreaminterface.cc
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2017 The WebRTC project authors. All Rights Reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree. An additional intellectual property rights grant can be found
+ * in the file PATENTS. All contributing project authors may
+ * be found in the AUTHORS file in the root of the source tree.
+ */
+
+#include "api/mediastreaminterface.h"
+
+namespace webrtc {
+
+const char MediaStreamTrackInterface::kVideoKind[] = "video";
+const char MediaStreamTrackInterface::kAudioKind[] = "audio";
+
+// TODO(ivoc): Remove this when the function becomes pure virtual.
+AudioProcessorInterface::AudioProcessorStatistics
+AudioProcessorInterface::GetStats(bool /*has_remote_tracks*/) {
+ AudioProcessorStats stats;
+ GetStats(&stats);
+ AudioProcessorStatistics new_stats;
+ new_stats.apm_statistics.divergent_filter_fraction =
+ stats.aec_divergent_filter_fraction;
+ new_stats.apm_statistics.delay_median_ms = stats.echo_delay_median_ms;
+ new_stats.apm_statistics.delay_standard_deviation_ms =
+ stats.echo_delay_std_ms;
+ new_stats.apm_statistics.echo_return_loss = stats.echo_return_loss;
+ new_stats.apm_statistics.echo_return_loss_enhancement =
+ stats.echo_return_loss_enhancement;
+ new_stats.apm_statistics.residual_echo_likelihood =
+ stats.residual_echo_likelihood;
+ new_stats.apm_statistics.residual_echo_likelihood_recent_max =
+ stats.residual_echo_likelihood_recent_max;
+ return new_stats;
+}
+
+} // namespace webrtc