am b3bb6fd5: am b25181aa: Merge "Fix the issue the video can\'t start to play" into honeycomb-mr1
* commit 'b3bb6fd5e3050b6d17bc1a58906ea04e97a29e20':
Fix the issue the video can't start to play
diff --git a/core/java/android/webkit/HTML5VideoFullScreen.java b/core/java/android/webkit/HTML5VideoFullScreen.java
index 9636513..0726266 100644
--- a/core/java/android/webkit/HTML5VideoFullScreen.java
+++ b/core/java/android/webkit/HTML5VideoFullScreen.java
@@ -114,13 +114,6 @@
return mVideoSurfaceView;
}
- @Override
- public void start() {
- if (getAutostart()) {
- super.start();
- }
- }
-
HTML5VideoFullScreen(Context context, int videoLayerId, int position,
boolean autoStart) {
mVideoSurfaceView = new VideoSurfaceView(context);
diff --git a/core/java/android/webkit/HTML5VideoViewProxy.java b/core/java/android/webkit/HTML5VideoViewProxy.java
index acd7eab..c727029 100644
--- a/core/java/android/webkit/HTML5VideoViewProxy.java
+++ b/core/java/android/webkit/HTML5VideoViewProxy.java
@@ -224,8 +224,9 @@
}
public static void onPrepared() {
- // The VideoView will decide whether to really kick off to play.
- mHTML5VideoView.start();
+ if (!mHTML5VideoView.isFullScreenMode() || mHTML5VideoView.getAutostart()) {
+ mHTML5VideoView.start();
+ }
if (mBaseLayer != 0) {
setBaseLayer(mBaseLayer);
}