From d436a8e4bf9a2c6eab6a09513ce13340c84ef10c Mon Sep 17 00:00:00 2001 From: Ben Murdoch Date: Wed, 22 Dec 2010 18:45:20 +0000 Subject: [PATCH] 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 --- WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp b/WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp index 3a397308b..ea560cb8d 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 { -- 2.11.0