html5 audio streaming hack :)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    html5 audio streaming hack :)

    With html5 you can now add music into your pages with ease using:
    PHP Code:
    <audio src="yourmp3.mp3" controls="controls" autoplay="autoplay"/> 
    how ever if you try to stream music though it eg:
    PHP Code:
    <audio src="http://voxsc1.somafm.com:8202" controls="controls" autoplay="autoplay"/> 
    it doesnt work

    however there is a simple hack to get it working
    simply put /; at the end of the url eg:
    PHP Code:
    <audio src="http://voxsc1.somafm.com:8202/;" controls="controls" autoplay="autoplay"/> 

    Happy streaming :P

    Added after 2 minutes:
    Browser support formats:

    IE 9 MP3
    Firefox 4.0 Wav, Ogg
    Chrome 6 MP3, Wav, Ogg
    Safari 5 MP3, Wav
    Opera 10.6 Wav, Ogg
    Last edited by something else; 11.05.12, 19:35.
Working...
X