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

Glenn Maynard glenn at zewt.org
Tue Jan 18 03:34:41 PST 2011


On Mon, Jan 17, 2011 at 5:01 PM, Zachary Ozer <zach at longtailvideo.com>wrote:

> > I assume you're comparing to the bandwidth usage of flash? Does flash
> allow
> > developers to control how the media is downloaded on the client? What
> > mechanisms does it provide? Maybe we can do something similar?
>
> There are a bunch:
>
> * backBufferLength : Number - [read-only] The number of seconds of
> previously displayed data that currently cached for rewinding and
> playback.
>
> * backBufferTime : Number - Specifies how much previously displayed
> data Flash Player tries to cache for rewinding and playback, in
> seconds.
>
> * bufferLength : Number - [read-only] The number of seconds of data
> currently in the buffer.
>
> * bufferTime : Number - Specifies how long to buffer messages before
> starting to display the stream.
>
> * bufferTimeMax : Number - Specifies a maximum buffer length for live
> streaming content, in seconds.
>
> * bytesLoaded : uint - [read-only] The number of bytes of data that
> have been loaded into the application.
>
> * bytesTotal : uint - [read-only] The total size in bytes of the file
> being loaded into the application.
>

Note that this doesn't actually seem to include the amount of time to
buffer; bufferTimeMax appears to be for live streaming only (eg.
videoconferencing and webcams) to control sync, not static videos like
YouTube.

-- 
Glenn Maynard


More information about the whatwg mailing list