View Full Version : HTML 5 w/javascript using <audio> tag

05-21-2009, 07:24 PM
Hi all,

Fast question. I can play audio (and video) using the HTML 5.0 <video> and <audio> tags just fine. I can stop/play/pause etc just fine.

My question is this;

I am currently using Quicktime to play Shoutcast audio streams, can I use the <audio> tag to play streams?

~Kam (^8*

05-21-2009, 07:54 PM
For example, I want to play the following URL from shoutcast


05-21-2009, 08:23 PM
From the looks of it, it doesn't seem like it. It is likely that the play would stop automatically as soon as it starts, considering the audio stream does not have a start/end. Then again, I might be wrong, though considering the specification doesn't mention anything about such support either, it's more likely that it won't work rather than it will.

Additionally, keep in mind that at the moment it seems that only FireFox and Chrome (nightly builds for both) support the audio tag... and that only partially, so there really isn't that much testing that can be done at this point. Though if you have any of the nightly builds and a link to streaming audio with OGG output... you can just as easily make a simple test page (Probably take about 15 seconds to do) and test it yourself.