Play a Shoutcast Stream on iPhone with HTML5

自闭症网瘾萝莉.ら 提交于 2019-12-05 01:09:44

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!