OSDN Git Service

Allow HTML5 video to seek.
authorBen Murdoch <benm@google.com>
Wed, 22 Dec 2010 18:45:20 +0000 (18:45 +0000)
committerBen Murdoch <benm@google.com>
Wed, 22 Dec 2010 18:45:20 +0000 (18:45 +0000)
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

index 3a39730..ea560cb 100644 (file)
@@ -308,6 +308,10 @@ public:
         env->DeleteLocalRef(clazz);
         checkException(env);
     }
+
+    float maxTimeSeekable() const {
+        return m_duration;
+    }
 };
 
 class MediaPlayerAudioPrivate : public MediaPlayerPrivate {