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

Unified Diff: media/base/media_content_type.h

Issue 2475473002: Implement one-shot audio focus inside MediaSession (Closed)
Patch Set: nits 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
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..52748e67f62cd4fee8892432851f3583e9fe8d8d 100644
--- a/media/base/media_content_type.h
+++ b/media/base/media_content_type.h
@@ -21,9 +21,10 @@ 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,
dcheng 2016/11/08 06:59:38 Nit: Add Max = Oneshot
Zhiqiang Zhang (Slow) 2016/11/10 15:07:18 Done.
};
// Utility function for deciding the MediaContentType of a player based on its

Powered by Google App Engine
This is Rietveld 408576698