Re: 'loadend' event on media elements

On Thu, Aug 13, 2009 at 7:06 PM, Ian Hickson<ian@hixie.ch> wrote:
> On Thu, 6 Aug 2009, Simon Pieters wrote:
>>
>> The Progress Events spec talks about a 'loadend' event that is to be
>> fired after load, error or abort. However, HTML5 doesn't say anything
>> about loadend for <video> and Firefox, Chrome and Safari don't fire
>> loadend.
>>
>> What do we want to do with loadend?
>
> On Fri, 7 Aug 2009, Simon Pieters wrote:
>>
>> When a media element has <source> children (and no src=''), the load
>> might never complete, so in that case there would be no loadend event
>> unless you got an abort or load event. When it has src='', you would
>> always get a loadend event.
>
> What's the difference between 'load' and 'loadend'?

'load', 'error', and 'abort' are mutually exclusive. 'loadend' fires
after any of the three.

/ Jonas

Received on Friday, 14 August 2009 03:09:39 UTC