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

Anne van Kesteren annevk at opera.com
Fri Oct 19 04:26:38 PDT 2007


On Fri, 19 Oct 2007 12:36:17 +0200, Robert O'Callahan  
<robert at ocallahan.org> wrote:
> On Oct 19, 2007 9:03 PM, Anne van Kesteren <annevk at opera.com> wrote:
>>   var soundeffect = new Audio("sound.wav")
>>   soundeffect.onload = function() { this.play() }
>>
>> which is what was possible with the old Audio API (became <audio>) Opera
>> implemented.
>
> When would the Opera stop playing that sound? When the user left the  
> page? Only when the sound finished?

Whichever comes first.


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



More information about the whatwg mailing list