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

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

From: Maciej Stachowiak <mjs@apple.com>
Date: Thu, 18 Oct 2007 17:37:55 -0700
Message-ID: <5EF18951-0F80-4891-9E9D-93A545DCE856@apple.com>

On Oct 18, 2007, at 3:55 PM, Geoffrey Garen wrote:

>> Suppose a script creates a <video> element, adds it to the  
>> document, starts it playing, then removes the element from the  
>> document and drops all references to it. When should the element  
>> stop playing?
>
>> -- when the element leaves the document?
>
> Probably. Since you can't see the video any more, it would be really  
> weird to hear audio from it, or waste computer resources on a mute  
> and invisible video. Moreover, there's a lot of precedent for DOM  
> elements not loading when they're not in the document. This is true  
> of iframe, script, img, etc.

However, you'd probably want <audio> elements to be able to play  
outside the document.

Regards,
Maciej
Received on Thursday, 18 October 2007 17:37:55 UTC

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