Bug 45630 - video's end of stream event is not fired
Summary: video's end of stream event is not fired
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-12 19:44 PDT by Jim Huang
Modified: 2010-09-13 06:57 PDT (History)
1 user (show)

See Also:


Attachments
a simple html and js for test, you can use arora open the html file. for the video tag, please indicate to a playable source. maybe need ffdshow to support some media type. (725 bytes, application/x-zip-compressed)
2010-09-13 01:20 PDT, Jim Huang
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Huang 2010-09-12 19:44:24 PDT
When an html5 video element finishes playing, it should fire the 'ended' event. This unfortunately is not happening.
document.getElementsByTagName('video')[0].addEventListener('ended', function(){ 
  alert('this will never happen'); 
});
Comment 1 Jim Huang 2010-09-13 01:20:55 PDT
Created attachment 67372 [details]
a simple html and js for test, you can use arora open the html file. for the video tag, please indicate to a playable source. maybe need ffdshow to support some media type.

ffdshow:
http://www.free-codecs.com/download/ffdshow.htm
Comment 2 Eric Carlson 2010-09-13 06:57:10 PDT
(In reply to comment #1)
> Created an attachment (id=67372) [details]
> a simple html and js for test, you can use arora open the html file. for the video tag, please 
> indicate to a playable source. maybe need ffdshow to support some media type.
> 
> ffdshow:
> http://www.free-codecs.com/download/ffdshow.htm

Your test page behaves correctly (the 'this will never happen' alert shows) if the video element points to a file WebKit can open. I suspect that the problem, like in 45629, is that your test file contains a codec that WebKit does not support.