Shoutcast的流 [英] Shoutcast streaming

查看:139
本文介绍了Shoutcast的流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前工作的一个应用程序的播客(katg.com),这将让你听现场等......但是,我还没有发现任何开源$ C ​​$ C可流Shoutcast的。我知道有这样做的一些方法,但我发现很难找到解释它为Java / Android的初学者像我这样的网的任何可用code。

任何人都知道任何库/教程/例子/ code,显示如何做到这一点在Android?

I'm currently working on a app for a podcast (katg.com) which will let you listen live etc... however, I have not found any open source code available to stream shoutcast. I know there are some ways of doing it, but I find it hard to find any available code on the net that explains it for a java/android beginner like myself.

Anyone know of any libs/tutorial/examples/code that shows how to do this on android?

推荐答案

由于埃里希似乎不小心贴错了链接,这里的有关协议向其他资源:的 http://forums.radiotoolbox.com/viewtopic.php?t=74

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

该Shoutcast的流本身是通过HTTP访问。例如通过Telnet:

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........

所以,你可以尝试缓冲流数据时有足够的发挥它传递给MediaPlayer的实例。

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

这篇关于Shoutcast的流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆