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

Unified Diff: content/browser/android/content_video_view.cc

Issue 11087082: Adding progresss bar when loading fullscreen video (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: resolve some previous merge conflicts Created 8 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
Index: content/browser/android/content_video_view.cc
diff --git a/content/browser/android/content_video_view.cc b/content/browser/android/content_video_view.cc
index 675b1cba14f934e1e08def8d913e10d71464f541..6a4436c154a1007ec999b38c9ed6c6861d23c33b 100644
--- a/content/browser/android/content_video_view.cc
+++ b/content/browser/android/content_video_view.cc
@@ -139,7 +139,7 @@ void ContentVideoView::SetSurface(JNIEnv* env, jobject obj,
void ContentVideoView::UpdateMediaMetadata(JNIEnv* env, jobject obj) {
media::MediaPlayerBridge* player = manager_->GetFullscreenPlayer();
- if (player)
+ if (player && player->prepared())
Java_ContentVideoView_updateMediaMetadata(
env, obj, player->GetVideoWidth(), player->GetVideoHeight(),
player->GetDuration().InMilliseconds(), player->can_pause(),

Powered by Google App Engine
This is Rietveld 408576698