Play a Shoutcast Stream on iPhone with HTML5

Matthias Stähle picture Matthias Stähle · Jan 12, 2011 · Viewed 15k times · Source

I know this question is already asked in past, but i finally found no answer....

So I got a shoutcast stream, encoding audio/mpeg and I want create a web-app for my iphone to listen to my stream mobile.

I tried several methods of http://mydomain.com:8000/. With semicolon, with stream.nsv, with stream.nsv&type=mp3 and so on...

I tested it everytime with the Safari browser und nothing happened. I tried several options in the html5 audio tag. preload, auto-buffering etc..... it's still quiet...

Do you have any solutions or snippets or what else?

Thank you :)

Answer

Landi picture Landi · Jan 15, 2011

HTML5 streaming web pp for iPhone.

<audio controls="> 
 <source src="http://www.yourstreaming.com" type="audio/ogg" />
 <source src="http://www.yourstreaming.com" type="audio/mpeg" />
</audio>