html5 audio streaming hack :)

Started on the old forum in May 2012 · view the original in the archive · old links redirect here

#hack #html5 #streaming

No replies · 673 views · started 14 years ago · 1 min read

something else Fellow · 2,296 posts #1

With html5 you can now add music into your pages with ease using:

<audio src="yourmp3.mp3" controls="controls" autoplay="autoplay"/>

how ever if you try to stream music though it eg:

<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:

<audio src="http://voxsc1.somafm.com:8202/;" controls="controls" autoplay="autoplay"/>

Happy streaming 😛

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

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close