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

Unified Diff: content/renderer/media/android/webmediaplayer_android.h

Issue 23797004: Sets the media element network state to idle until playback is requested. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: new flag playing_started_ Created 7 years, 3 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
Index: content/renderer/media/android/webmediaplayer_android.h
diff --git a/content/renderer/media/android/webmediaplayer_android.h b/content/renderer/media/android/webmediaplayer_android.h
index 9c4dc71878b4c7008040cc530fe7dd30cecd1af2..8d071455c6cd15063a7e936c779dc9a0dd173939 100644
--- a/content/renderer/media/android/webmediaplayer_android.h
+++ b/content/renderer/media/android/webmediaplayer_android.h
@@ -336,6 +336,9 @@ class WebMediaPlayerAndroid
// Whether the mediaplayer is playing.
bool is_playing_;
+ // Wether the mediaplayer has already started playing.
+ bool playing_started_;
+
// Whether media player needs to re-establish the surface texture peer.
bool needs_establish_peer_;

Powered by Google App Engine
This is Rietveld 408576698