[ogg-dev] HTML5 audio tag

Conrad Parker conrad at metadecks.org
Tue May 11 04:11:50 PDT 2010


On 11 May 2010 19:05, narendra sisodiya <narendra.sisodiya at gmail.com> wrote:
>
>
> --
> ┌─────────────────────────┐
> │    Narendra Sisodiya ( नरेन्द्र सिसोदिया )
> │    Society for Knowledge Commons
> │    Web : http://narendra.techfandu.org
> └─────────────────────────┘Dear all,
> I downloaded big buck movie in video format. when i use
>
> <video src="Big_Buck_Bunny_Trailer_400p.ogg" controls="controls">
> your browser does not support the video tag
> </video>
>
> It show me , video + audio
>
> but when I use
>
> <audio src="Big_Buck_Bunny_Trailer_400p.ogg" controls="controls">
> your browser does not support the video tag
> </audio>
>
> It only play audio..
>
> I have tested in Firefox
>
> Now my question is,
> If i use <audio/> tag with src as a video file, then
>
> 1) Do firefox stream whole video file and play only audio part
> OR
> 2) Do firefox stream only audio part of the file and play it.
>
> I want to know, is there any bandwidth advantage with  <audio/> tag over
> <video> tag ?
>
> If I am unable to explain, do let me know, I will try again...

as Chris said, there is no bandwidth advantage.

So if you want to just play the audio and not send any video, you need
to prepare a new file containing only the audio track, eg:

$ oggz rip -c vorbis -o Big_Buck_Bunny_Trailer_audio.ogg
Big_Buck_Bunny_Trailer_400p.ogg

and then use the newly created file in the audio tag:

<audio src="Big_Buck_Bunny_Trailer_audio.ogg" controls="controls">
your browser does not support the audio tag
</audio>

Conrad.


More information about the ogg-dev mailing list