W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2009

[whatwg] Delaying the media load event

From: Matthew Gregan <kinetik@flim.org>
Date: Thu, 28 May 2009 01:08:11 +1200
Message-ID: <20090527130811.GH22769@flim.org>
At 2009-05-27T14:21:53+0200, Anne van Kesteren wrote:
> On Wed, 27 May 2009 14:16:46 +0200, Matthew Gregan <kinetik at flim.org> wrote:
> > For a media element, the load event may fire before loadedmetadata and
> > loadeddata.  So load does not mean that it's possible to paint into a
> > canvas yet.
> Where did you read that? As far as I can tell it is not fired until the
> selected resource is completely loaded. I.e. as step 4 of the "resource
> fetch algorithm".

You're right, thanks.  Apologies for the noise.

In summary, the valid media substep within step 3 of the resource fetch
algorithm must complete before step 4, where load is fired.  That substep
covers loadedmetadata and loadeddata firing, so the ordering of the three
events is required to be: loadedmetadata, loadeddata, load.

Matthew Gregan                     |/
                                  /|                    kinetik at flim.org
Received on Wednesday, 27 May 2009 06:08:11 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:12 UTC