Comment 3 for bug 490691

Revision history for this message
David Coles (dcoles) wrote :

I've also added in support for sending the Content-Length of served files. This is useful for downloads and showing the length of some media files. For example, HTML5 audio tag will show duration of wave files.

One thing that won't work is the duration of Ogg files since the file length is not clear from the start of the file. The two ways around it are setting X-Content-Duration (unlikely since we don't really use ogg files for anything) or allowing seeking of files with partial content to allow the browser to peek at the end of the file. It's also handy if you want to allow uses to seek in a file rather than wait for the entire thing to download.

See: https://developer.mozilla.org/en/Configuring_servers_for_Ogg_media#Getting_the_duration_of_Ogg_media