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

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/>

Received on Friday, 19 October 2007 16:37:47 UTC