开发者

Play a Shoutcast Stream on iPhone with HTML5

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


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>


Try jPlayer I'm pretty sure it can play shoutcast stream, and it works in iPhone. The player uses HTML5, and supports flash fallback.


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/


I would suggest Mediaelement . Its works well on most of mobile devices including iPhone.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜