Index: content/renderer/media/android/webmediaplayer_android.cc |
diff --git a/content/renderer/media/android/webmediaplayer_android.cc b/content/renderer/media/android/webmediaplayer_android.cc |
index 9cce80b899d64d5dc47cd91164e66901efb42c66..eadd264867b38a65a138207994e091fe9c466087 100644 |
--- a/content/renderer/media/android/webmediaplayer_android.cc |
+++ b/content/renderer/media/android/webmediaplayer_android.cc |
@@ -968,6 +968,12 @@ void WebMediaPlayerAndroid::OnVideoSizeChanged(int width, int height) { |
video_weblayer_.reset(new cc_blink::WebLayerImpl( |
cc::VideoLayer::Create(this, media::VIDEO_ROTATION_0))); |
client_->setWebLayer(video_weblayer_.get()); |
+ |
+ // If we're paused after we receive metadata for the first time, tell the |
wolenetz
2016/03/15 01:08:24
For MSE midstream configchange that changes the wi
wolenetz
2016/03/15 01:11:18
Dale pointed out this block happens only once (if
|
+ // delegate we can now be safely suspended due to inactivity if a subsequent |
+ // play event does not occur. |
+ if (paused() && delegate_) |
+ delegate_->DidPause(delegate_id_, false); |
} |
} |