Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Unified Diff: third_party/WebKit/Source/platform/mediastream/MediaStreamSource.cpp

Issue 2956063003: Add support for echoCancellation and deviceId to MediaStreamTrack.getSettings (Closed)
Patch Set: fix DCHECK Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/mediastream/MediaStreamSource.cpp
diff --git a/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.cpp b/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.cpp
index 5cab26fbe1374d1ffc8d9e23c79f9dd7469bb517..7f5ab9cf6481259a63b95bbad3595ccf2c621494 100644
--- a/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.cpp
+++ b/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.cpp
@@ -108,6 +108,9 @@ bool MediaStreamSource::RemoveAudioConsumer(
void MediaStreamSource::GetSettings(WebMediaStreamTrack::Settings& settings) {
settings.device_id = Id();
+
+ if (echo_cancellation_.has_value())
+ settings.echo_cancellation = *echo_cancellation_;
}
void MediaStreamSource::SetAudioFormat(size_t number_of_channels,

Powered by Google App Engine
This is Rietveld 408576698