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

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

From: Robert O'Callahan <robert@ocallahan.org>
Date: Fri, 19 Oct 2007 23:36:17 +1300
Message-ID: <11e306600710190336v1f3bcb26xe6dc3b80553e0944@mail.gmail.com>
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>
Received on Friday, 19 October 2007 03:36:17 UTC

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