summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Andrei Popescu <andreip@google.com> 2010-01-11 10:47:23 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2010-01-11 10:47:23 -0800
commit10d268e315ad0fa17507b77d809bbff6fdcd33b8 (patch)
tree79cc6fbd44c94b7e9dc4ce45cdbda72c2c0f2acb
parent0f5525ad3b9b341a6c288ded8a8a08572fc657c6 (diff)
parenta41f97bd77f2583e2e3698cfbba62230a8ac4789 (diff)
Merge "Allow a video to be correctly resumed programatically after being paused."
-rw-r--r--core/java/android/webkit/HTML5VideoViewProxy.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/webkit/HTML5VideoViewProxy.java b/core/java/android/webkit/HTML5VideoViewProxy.java
index 3e0be1cc938c..ecbc7e761e9d 100644
--- a/core/java/android/webkit/HTML5VideoViewProxy.java
+++ b/core/java/android/webkit/HTML5VideoViewProxy.java
@@ -118,11 +118,19 @@ class HTML5VideoViewProxy extends Handler
public static void play(String url, int time, HTML5VideoViewProxy proxy,
WebChromeClient client) {
+ if (mCurrentProxy == proxy) {
+ if (!mVideoView.isPlaying()) {
+ mVideoView.start();
+ }
+ return;
+ }
+
if (mCurrentProxy != null) {
// Some other video is already playing. Notify the caller that its playback ended.
proxy.playbackEnded();
return;
}
+
mCurrentProxy = proxy;
// Create a FrameLayout that will contain the VideoView and the
// progress view (if any).