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

Unified Diff: third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp

Issue 2291893002: Let Contraints Controll Mute/Unmute Audio Local Playback For Desktop Sharing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unique_ptr Created 4 years, 3 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/modules/mediastream/MediaConstraintsImpl.cpp
diff --git a/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp b/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp
index 56c542d99bb0fa2d43524cb05623ef93976c2a78..6c33f10f85aa7349f9ff613987ccefd8a3a98ede 100644
--- a/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp
+++ b/third_party/WebKit/Source/modules/mediastream/MediaConstraintsImpl.cpp
@@ -91,6 +91,7 @@ const char kMediaStreamAudioHotword[] = "googHotword";
// TODO(hta): googHotword should go away. https://crbug.com/577627
// From content/renderer/media/media_stream_audio_processor_options.cc
const char kEchoCancellation[] = "echoCancellation";
+const char kGoogDisableLocalEcho[] = "googDisableLocalEcho";
Mike West 2016/09/27 08:03:41 Is this web-exposed? That is, does a developer typ
qiangchen 2016/09/27 16:16:47 It is web exposed. But it is not an API function n
Avi (use Gerrit) 2016/09/27 16:20:34 Waaaaaait. I see lots of "googXXXX" constants in t
qiangchen 2016/09/27 16:32:49 Yes. You can search them on google, and you will f
const char kGoogEchoCancellation[] = "googEchoCancellation";
const char kGoogExperimentalEchoCancellation[] = "googEchoCancellation2";
const char kGoogAutoGainControl[] = "googAutoGainControl";
@@ -294,6 +295,8 @@ static void parseOldStyleNames(ExecutionContext* context, const Vector<NameValue
// represented as an enum, and cause type errors.
// https://crbug.com/576582
result.mediaStreamSource.setExact(constraint.m_value);
+ } else if (constraint.m_name.equals(kGoogDisableLocalEcho)) {
+ result.googDisableLocalEcho.setExact(toBoolean(constraint.m_value));
} else if (constraint.m_name.equals(kMediaStreamSourceId)
|| constraint.m_name.equals(kMediaStreamSourceInfoId)) {
result.deviceId.setExact(constraint.m_value);
« no previous file with comments | « content/renderer/media/user_media_client_impl.cc ('k') | third_party/WebKit/Source/platform/exported/WebMediaConstraints.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698