summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Teng-Hui Zhu <ztenghui@google.com> 2011-04-07 09:07:52 -0700
committer Android Git Automerger <android-git-automerger@android.com> 2011-04-07 09:07:52 -0700
commitb3bb6fd5e3050b6d17bc1a58906ea04e97a29e20 (patch)
treec8586d346d17f4266a53a94e139fb1640210bb0c
parent1b87f1db89e82d00445a43c4593d8c5ea5d2633f (diff)
parentb25181aaccb00fee405251bf3575ce1d40badf46 (diff)
am b25181aa: Merge "Fix the issue the video can\'t start to play" into honeycomb-mr1
* commit 'b25181aaccb00fee405251bf3575ce1d40badf46': Fix the issue the video can't start to play
-rw-r--r--core/java/android/webkit/HTML5VideoFullScreen.java7
-rw-r--r--core/java/android/webkit/HTML5VideoViewProxy.java5
2 files changed, 3 insertions, 9 deletions
diff --git a/core/java/android/webkit/HTML5VideoFullScreen.java b/core/java/android/webkit/HTML5VideoFullScreen.java
index 96365138a78d..072626661911 100644
--- a/core/java/android/webkit/HTML5VideoFullScreen.java
+++ b/core/java/android/webkit/HTML5VideoFullScreen.java
@@ -114,13 +114,6 @@ public class HTML5VideoFullScreen extends HTML5VideoView
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 acd7eab63a48..c7270299bec0 100644
--- a/core/java/android/webkit/HTML5VideoViewProxy.java
+++ b/core/java/android/webkit/HTML5VideoViewProxy.java
@@ -224,8 +224,9 @@ class HTML5VideoViewProxy extends Handler
}
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);
}