W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2011

[whatwg] Limiting the amount of downloaded but not watched video

From: Chris Pearce <chris@pearce.org.nz>
Date: Mon, 24 Jan 2011 10:16:18 +1300
Message-ID: <4D3C9AA2.8090106@pearce.org.nz>
On 24/01/2011 12:32 a.m., Philip J?genstedt wrote:
>> Hmm.  To get this effect without preload=buffer, you could set 
>> preload=auto,
>> watch the buffered attribute to see when some data is actually 
>> downloaded,
>> then set it to preload=metadata to stop autoloading.  That's a minor 
>> hack,
>> and would need to watch out for browsers that don't autoload on
>> preload=auto, but it's probably good enough for the above cases.  
>> It'd only
>> work if runtime changes to preload are applied, which would also be 
>> needed
>> for scripts to implement "preload=auto only when paused".
> I intend to make that impossible by only allowing scripts to increase 
> the effective buffering strategy

FWIW, this is what we've implemented in Firefox; we only allow changes 
to the preload attribute after a load has started to increase the level 
of buffering.

Chris P.
Received on Sunday, 23 January 2011 13:16:18 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:29 UTC