OSDN Git Service

Enable the dispatching of the 'ended' media event.
authorAndrei Popescu <andreip@google.com>
Mon, 26 Oct 2009 15:21:19 +0000 (15:21 +0000)
committerAndrei Popescu <andreip@google.com>
Mon, 26 Oct 2009 15:21:19 +0000 (15:21 +0000)
Partial fix for http://b/issue?id=2210105

WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp

index 6c9ea49..5860bd2 100644 (file)
@@ -357,6 +357,8 @@ void MediaPlayerPrivate::onPrepared(int duration, int width, int height) {
 }
 
 void MediaPlayerPrivate::onEnded() {
+    m_currentTime = duration();
+    m_player->timeChanged();
     m_paused = true;
     m_currentTime = 0;
     m_networkState = MediaPlayer::Idle;