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

[whatwg] Video element and duration attribute

From: Chris Double <chris.double@double.co.nz>
Date: Sat, 1 Nov 2008 09:18:33 +1300
Message-ID: <c2e346f90810311318j4ff29785teb8d33af6de93a8b@mail.gmail.com>
Some video formats don't make it easy to get the duration.

For example, Ogg files can be concatenated to form a single playable
file. To compute the duration you need to do multiple seeks to find
the chains and total the durations of each chain. Even in the
unchained case a seek is required to go to the end of the file and
work backwards finding a packet with a timestamp. While this is not
difficult to implement it can be expensive over HTTP, requiring
multiple byte range requests.

The most common player for Ogg files on the web is probably the
Cortado Java applet, and it has an applet parameter to specify the
duration. There have been requests in #theora from people wishing that
<video> supported a duration attribute that could be set in the HTML.

Would such an attribute be useful? It seems to be a commonly used in
current Ogg web solutions. Are there any other video formats that
could benefit from this?

Chris.
-- 
http://www.bluishcoder.co.nz
Received on Friday, 31 October 2008 13:18:33 UTC

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