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

Unified Diff: content/renderer/media/user_media_client_impl.cc

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: Rebase Created 4 years, 2 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
« no previous file with comments | « content/public/common/media_stream_request.cc ('k') | content/test/data/media/getusermedia.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/user_media_client_impl.cc
diff --git a/content/renderer/media/user_media_client_impl.cc b/content/renderer/media/user_media_client_impl.cc
index 3262a4cde71a68df1c02b9035c2c1c78033e3b81..d4ea066fe24d555ee773a800d50907f67ab4b942 100644
--- a/content/renderer/media/user_media_client_impl.cc
+++ b/content/renderer/media/user_media_client_impl.cc
@@ -86,6 +86,14 @@ void CopyBlinkRequestToStreamControls(const blink::WebUserMediaRequest& request,
}
}
}
+
+ if (request.audioConstraints().basic().disableLocalEcho.hasExact()) {
+ controls->disable_local_echo =
+ request.audioConstraints().basic().disableLocalEcho.exact();
+ } else {
+ controls->disable_local_echo =
+ controls->audio.stream_source != kMediaStreamSourceDesktop;
+ }
}
if (!request.videoConstraints().isNull()) {
const blink::WebMediaTrackConstraintSet& video_basic =
« no previous file with comments | « content/public/common/media_stream_request.cc ('k') | content/test/data/media/getusermedia.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698