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

问题描述

嘿,因为很长一段时间,我想听听.PLS文件(shoutcasts)。我不得不说,我没太可怕了。因为StreamFurious可以做到这一点,必须有可能。首先,我想通过套接字(TCP和UDP)连接到Shoutcast一样 - >失败。从服务器上我甚至不能接受一个字节。

Hey,since quite some time I'm trying to listen to .pls files (shoutcasts). I have to say that I failed horrible.Since StreamFurious can do it it must be possible. First I tried to connect to the shoutcast via sockets (TCP and UDP) --> failed. I couldn't even receive one byte from the server.

我在眼泛泪光。我甚至不有什么线索是建立连接,之后不断地下载/接收数据流的最佳方式。

I'm at the verge of tears. I don't even have a clue what's the best way to establish a connection and afterwards continually download/receive the data stream.

我真的希望有人能指点正确的方向,如果可以给我一个简短code段。

I really hope someone can point me to the right direction and give me a short code snippet if available.

RGDS莱恩

推荐答案

您可以尝试以下资源:

http://stackoverflow.com/questions/1932620/shoutcast-streaming

http://ostermiller.org/shoutgrab/

HTTP://$c$c.google.com/p/streamscraper/

HTTP://$c$c.google.com/p/castor-streamer/

http://mp3imagetagextr.sourceforge.net/ShoutcastPlsDownloader/index.html

这是我可以告诉,你可能需要处理的PLS下载(通过HTTP,如果我理解正确),并分析自己,但你可以用手实际的音频流的URL的MediaPlayer播放。假设这些流在规定范围内(而不是全部都是),机器人应能回放。但我不是一个Shoutcast的专家以任何手段。

From what I can tell, you may need to handle the PLS download (via HTTP if I understand correctly) and parsing yourself, but you can then hand the actual audio stream URLs to MediaPlayer for playback. Assuming those streams are within specifications (and not all are), Android should be able to play them back. But I am not a Shoutcast expert by any means.

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

08-20 07:04
查看更多