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


From: Gervase Markham <gerv@gerv.net>
Date: Thu, 08 Oct 2009 12:14:37 +0100
Message-ID: <4ACDC99D.5010809@gerv.net>
To: public-html-comments@w3.org
On a <video> element (I haven't tried <audio>), if you change the src= 
attribute to a new file, you have to call .load() before .play(), 
otherwise it replays the old file. This lost me half an hour of 
debugging, and recently another person posted in the Mozilla newsgroups 
having exactly the same problem.

I am told by an informed source (Boris Zbarsky) that the spec for 
<video> requires this behaviour. Having spent ten minutes reading the 
highly comprehensive specification, I could not find the location where 
it says this. However, I believe him :-)

Question: why? This is counter-intuitive. Under what circumstances would 
you want to set the src= attribute of a <video> tag to a file which you 
did not want the loading process to begin immediately? Can we eliminate 
the requirement, e.g. by having play() implicitly call load() if it 
hasn't been called?

Received on Thursday, 8 October 2009 11:15:12 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:26:25 UTC