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

Unified Diff: webkit/media/android/webmediaplayer_manager_android.h

Issue 11361239: Keep playing audio even when opening another tab, going to another app etc. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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: webkit/media/android/webmediaplayer_manager_android.h
diff --git a/webkit/media/android/webmediaplayer_manager_android.h b/webkit/media/android/webmediaplayer_manager_android.h
index 1e959a0fc25dd348b8858c97ee37c1047f5aff24..f0312eed1061e53c59b6eef8ac502298491d1f60 100644
--- a/webkit/media/android/webmediaplayer_manager_android.h
+++ b/webkit/media/android/webmediaplayer_manager_android.h
@@ -28,8 +28,9 @@ class WebMediaPlayerManagerAndroid {
int RegisterMediaPlayer(WebMediaPlayerAndroid* player);
void UnregisterMediaPlayer(int player_id);
- // Release all the media resources managed by this object.
- void ReleaseMediaResources();
+ // Release all the media resources managed by this object unless
+ // an audio play is in progress.
qinmin 2012/11/14 18:14:29 not "audio", but ”media“, the logic should also ap
Miguel Garcia 2012/11/14 18:50:32 Well I thought that if the media happened to be vi
+ void ReleaseMediaResourcesIfNotPlaying();
// Check whether a player can enter fullscreen.
bool CanEnterFullscreen(WebKit::WebFrame* frame);

Powered by Google App Engine
This is Rietveld 408576698