From 3a8abed5e539483f33e78a8be2e2dbbba3c4f664 Mon Sep 17 00:00:00 2001 From: Andrei Popescu Date: Mon, 26 Oct 2009 15:21:19 +0000 Subject: Enable the dispatching of the 'ended' media event. Partial fix for http://b/issue?id=2210105 --- WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'WebKit/android/WebCoreSupport') diff --git a/WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp b/WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp index 6c9ea49..5860bd2 100644 --- a/WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp +++ b/WebKit/android/WebCoreSupport/MediaPlayerPrivateAndroid.cpp @@ -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; -- cgit v1.1