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

Unified Diff: media/base/media_switches.cc

Issue 2437623005: Let Flash take one-shot focus in default MediaSession (Closed)
Patch Set: IsDuckFlash -> ShouldDuckFlash 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 | « media/base/media_switches.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/media_switches.cc
diff --git a/media/base/media_switches.cc b/media/base/media_switches.cc
index c07efd2914ef38e9d64098fcfb8a7d50bbc58918..c7e02e2c39d8637983da8a9610feabf2618e2985 100644
--- a/media/base/media_switches.cc
+++ b/media/base/media_switches.cc
@@ -70,13 +70,14 @@ const char kUseCras[] = "use-cras";
// Use a media session for each tabs in a way that two tabs can't play on top of
// each other. This is different from the Media Session API as it is enabling a
// default behaviour for the browser. The allowed values are: "" (empty),
-// |kEnableDefaultMediaSessionWithFlash|.
+// |kEnableDefaultMediaSessionDuckFlash|.
const char kEnableDefaultMediaSession[] = "enable-default-media-session";
#endif // !defined(OS_ANDROID) || defined(ENABLE_PLUGINS)
#if defined(ENABLE_PLUGINS)
-// This value is used as an option for |kEnableDefaultMediaSession|.
-const char kEnableDefaultMediaSessionWithFlash[] = "with-flash";
+// This value is used as an option for |kEnableDefaultMediaSession|. Flash will
+// be ducked when losing audio focus.
+const char kEnableDefaultMediaSessionDuckFlash[] = "duck-flash";
#endif // defined(ENABLE_PLUGINS)
// Use fake device for Media Stream to replace actual camera and microphone.
« no previous file with comments | « media/base/media_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698