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

Robert O'Callahan robert at ocallahan.org
Fri Oct 19 03:36:17 PDT 2007


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?

Rob
-- 
"Two men owed money to a certain moneylender. One owed him five hundred
denarii, and the other fifty. Neither of them had the money to pay him back,
so he canceled the debts of both. Now which of them will love him more?"
Simon replied, "I suppose the one who had the bigger debt canceled." "You
have judged correctly," Jesus said. [Luke 7:41-43]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20071019/49d33019/attachment.htm>


More information about the whatwg mailing list