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

Maciej Stachowiak mjs at apple.com
Thu Oct 18 17:37:55 PDT 2007


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




More information about the whatwg mailing list