W3C home > Mailing lists > Public > public-html@w3.org > March 2009

Load event and <video>

From: Simon Pieters <simonp@opera.com>
Date: Thu, 19 Mar 2009 17:17:43 +0100
To: public-html <public-html@w3.org>
Message-ID: <op.uq1rjtpcidj3kv@zcorpandell.linkoping.osa>
We've been discussing a bit regarding the load event and <video>...

As currently specced it seems like the load event could be delayed indefinitely if the UA decided to stall the download of the video:

Step 2 of the resource selection algorithm sets delaying-the-load-event flag to true.

Step 5.2 invokes the resource fetch algorithm.

Step 3 of the resource fetch algorithm allows the UA to stall the download.

Is the above analysis correct? Surely we don't want to delay the load event indefinitely? Is the intent that UAs have to download enough video data to know the dimensions of all videos before sending the load event?

We were thinking that if there's a poster image then when the poster image has loaded we can stop delaying the load event without downloading any video data at all (even though the video dimensions might be different -- if they are different then that's the author's fault).

On a related note, I think Opera doesn't download images that are display:none or visibility:hidden or maybe have 0 height and width. Such images don't delay the load event. Maybe the spec should allow this?

Simon Pieters
Opera Software
Received on Thursday, 19 March 2009 16:18:28 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:43 UTC