Is it possible to play a shoutcast/icecast stream using HTML5?
If so, how should I implement it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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):
From MDN:
Browsers support
flac,mp3,vorbis,aac,opusandwav. More details on caniuse.com.Original post
Add a semicolon to the end of the http request. It IS the protocol set forth by shoutcast to override it’s browser detection. Like this: