Load event and <video>

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