Sean Bannister
Sean Bannister

Reputation: 3185

MP3 stream won't play with HTML5 Audio in Chrome

I'm currently debugging why this MP3 stream doesn't play in Chrome.

I have the following code: http://jsfiddle.net/6XVQB/

<audio controls>
  <source src="http://radio.4play.fm:80/192.mp3" type="audio/mpeg">
</audio>

This works fine in firefox but not in Chrome. The stream is being delivered using Icecast. When I serve the same stream using Shoutcast at http://radio.4play.fm:443/192.mp3 it works fine in Chrome.

Upvotes: 1

Views: 6101

Answers (1)

xRadio.us
xRadio.us

Reputation: 85

Sometimes streaming radio stations try to mislead or spoof the identity of their streams.

I just developed an HTML5 radio jukebox http://m.gooplusplus.com/?radio

In the process, I found that I often had to "tweak" the URL to make things work.

Try this alternate code for your stream:

<audio controls src="http://radio.4play.fm:80/192.mp3#.m4a" type="audio/mpeg">

BTW, I added the 80kbps Ogg version of your stream to my site (E2) since I know little about electronica/club music and need a few more stations in that genre.

Upvotes: 3

Related Questions