[whatwg] When to stop <video> elements from playing

Anne van Kesteren annevk at opera.com
Fri Oct 19 16:37:47 PDT 2007


On Sat, 20 Oct 2007 01:31:46 +0200, Robert O'Callahan  
<robert at ocallahan.org> wrote:
> Therefore
> myAudio = new Audio("foo.wav");
> myAudio.onload = function () {
>   this.play();
>   myAudio = null;
> }
> will work, and will play until the sound ends or the user leaves the  
> page.

That matches what Opera implements, too.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>



More information about the whatwg mailing list