[whatwg] When to stop <video> elements from playing
Robert O'Callahan
robert at ocallahan.org
Fri Oct 19 18:09:09 PDT 2007
On Oct 20, 2007 1:36 PM, Jonas Sicking <jonas at sicking.cc> wrote:
> Robert O'Callahan wrote:
> > After some discussion on IRC, I think Jonas, Hixie and I agreed that
> > we're OK with the following approach:
> > -- sound is produced for display:none elements and elements not in the
> DOM
> > -- removing an element from the DOM automatically calls stop() on that
> > element
>
> Actually, shouldn't that be pause()? Might be good to retain the
> position in case you want to insert the element elsewhere and resume it.
>
Yes sorry.
> > -- tearing down the owner document always stops the element playing (so
> > navigating away from the page always stops sound)
>
> This shouldn't be "tearing down", but rather "leaving", right? A
> document can stay alive long after the user has navigated away from it
> since other frames can be holding it alive.
Yes, well, I was being vague about "tearing down". In Gecko we want bfcached
documents to pause their elements too.
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/20071020/e4b1d565/attachment-0001.htm>
More information about the whatwg
mailing list