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

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.


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