W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2007

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

From: Anne van Kesteren <annevk@opera.com>
Date: Sat, 20 Oct 2007 01:37:47 +0200
Message-ID: <op.t0gw89s564w2qv@annevk-t60.oslo.opera.com>
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

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:37 UTC