Shoutcast streaming

南楼画角 提交于 2019-12-03 21:44:28

As Erich seems to have accidentally posted the wrong link, here's another resource about the protocol: http://forums.radiotoolbox.com/viewtopic.php?t=74

The shoutcast stream itself is accessible via HTTP. For example via Telnet:

$ telnet myshoutcastserver.com 8000
GET / HTTP 1.1

..............a lot of streaming stuff........

So you could try to buffer the stream data and when there is enough to play pass it to a MediaPlayer instance.

There is a shoutcast streaming application for android on github: http://github.com/Dawnthorn/nagare/

I didn't try it and it seems to be not continued. However maybe the code helps :)

Here's some text on how the Shoutcast protocol works: SHOUTcast Protocol. It's not as good as sample code, but it might come in useful.

Edit: Fixed the link.

In case you haven't found it by now, Icecast is an open source audio streaming server that supports the SHOUTcast protocol: http://www.icecast.org/index.php

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