问题
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 :)
回答1:
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>
回答2:
Try jPlayer I'm pretty sure it can play shoutcast stream, and it works in iPhone. The player uses HTML5, and supports flash fallback.
回答3:
you very welcome,sorry i don't know the source for Android,here are links that might help you,good luck with it. http://dev.opera.com/articles/view/everything-you-need-to-know-about-html5-video-and-audio/
回答4:
I would suggest Mediaelement . Its works well on most of mobile devices including iPhone.
来源:https://stackoverflow.com/questions/4667089/play-a-shoutcast-stream-on-iphone-with-html5