summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2010-12-22 18:45:20 +0000
committerBen Murdoch <benm@google.com>2010-12-22 18:45:20 +0000
commitd436a8e4bf9a2c6eab6a09513ce13340c84ef10c (patch)
treeda27253b130078f0d504e111533631cffa0967f2
parent4741f41129460f4c8cdca5df12a38305f38945d0 (diff)
downloadexternal_webkit-d436a8e4bf9a2c6eab6a09513ce13340c84ef10c.zip
external_webkit-d436a8e4bf9a2c6eab6a09513ce13340c84ef10c.tar.gz
external_webkit-d436a8e4bf9a2c6eab6a09513ce13340c84ef10c.tar.bz2
Allow HTML5 video to seek.
Need to return the duration of the currently playing video to WebCore to allow the video to seek correctly. Bug: 3303699 Change-Id: I79f6a7e7217cf987d35b5b1a9313a918630be7a0
-rw-r--r--WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp b/WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp
index 3a39730..ea560cb 100644
--- a/WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp
+++ b/WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp
@@ -308,6 +308,10 @@ public:
env->DeleteLocalRef(clazz);
checkException(env);
}
+
+ float maxTimeSeekable() const {
+ return m_duration;
+ }
};
class MediaPlayerAudioPrivate : public MediaPlayerPrivate {