How could I play a shoutcast/icecast stream using HTML5?

2020 update Modern browsers don’t need any special treatment or server-side workarounds to play audio. Simply use an audio tag with a direct link to one or more stream sources (not a playlist): <audio> <source src=”http://relay.publicdomainradio.org/classical.mp3″ type=”audio/mpeg”> </audio> From MDN: The HTML <audio> element is used to embed sound content in documents. It may contain … Read more

Streaming audio from a Node.js server to HTML5 tag

Here’s a (slightly outdated) summary of the current status of HTML5 Audio and Icecast streams. As you can see, a MP3 source only seems to work in Safari (and possibly IE9). You might need to experiment with some server-side transcoding (with ffmpeg or mencoder) to OGG Vorbis. I’m pretty sure I was able to get … Read more

techhipbettruvabetnorabahisbahis forumu