[ogg-dev] HTML5 audio tag

Ralph Giles giles at thaumas.net
Tue May 11 10:17:42 PDT 2010


On 11 May 2010 04:24, narendra sisodiya <narendra.sisodiya at gmail.com> wrote:

>      It will be very good if HTML5 API specify this. I mean, Say, If we use
> <audio> tag , then It must stream only audio part of the file irrespective
> of the fact that the src field contains a video file.

I don't think that's a practical option, since the server must
manipulate the file to return an audio-only subset of the data for
there to be any bandwidth advantage. That's not something that the
HTML5 specification, which documents browser behaviour, can describe.

Note that it's completely possible to use a server-size module or
script to do this, using a query url in the HTML5 media element's src
attribute. It's just part of a custom server config rather than the
HTML5 API. The Media Fragments Working Group at the W3C is currently
working on a standardized syntax for this. See
http://www.w3.org/2008/WebVideo/Fragments/WD-media-fragments-spec/ if
you're interested.

FWIW,
 -r


More information about the ogg-dev mailing list