开发者

Play a Shoutcast Stream on iPhone with HTML5

开发者 https://www.devze.com 2023-02-04 00:07 出处:网络
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 mobi

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

精彩评论

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

关注公众号