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

Unified Diff: media/base/media_content_type.h

Issue 2475473002: Implement one-shot audio focus inside MediaSession (Closed)
Patch Set: fixed a case where removing the last one-shot player Created 4 years, 1 month 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/renderer/media/webmediaplayer_ms.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/media_content_type.h
diff --git a/media/base/media_content_type.h b/media/base/media_content_type.h
index e1b3943ba3d08d4ddd4c7c1cbadde8727bdbd42c..efafd43ef521ac83e2f7db9ad8b0def4dc6e4df7 100644
--- a/media/base/media_content_type.h
+++ b/media/base/media_content_type.h
@@ -21,9 +21,12 @@ enum class MediaContentType {
// Type indicating that a player is a Pepper instance. MediaSession may duck
// the player instead of pausing it.
Pepper,
- // Type indicating that a player cannot be controlled. MediaSession wil ignore
- // this player.
- Uncontrollable
+ // Type indicating that a player cannot be controlled. MediaSession will take
+ // audio focus when the player joins but will not let it respond to audio
+ // focus changes.
+ OneShot,
+ // The maximum number of media content types.
+ Max = OneShot,
};
// Utility function for deciding the MediaContentType of a player based on its
« no previous file with comments | « content/renderer/media/webmediaplayer_ms.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698