shoutcast

Parsing SHOUTcast 7.html metadata on Android

孤者浪人 提交于 2019-12-02 07:27:32
问题 I am trying to check the status of a SHOUTcast stream using this URL: http://85.17.167.136:8684/7.html ... which returns data like: <HTML><meta http-equiv="Pragma" content="no-cache"></head><body>7,1,77,100,7,128,+44(0)7908 340 811 Follow Us @visionradiouk</body></html> I know that the after the first comma returns 1 if the stream is up and running or returns 0 if the stream is down. My problem is getting the html of that page? I use this code, which works on other websites like Google etc.

Parsing SHOUTcast 7.html metadata on Android

安稳与你 提交于 2019-12-02 03:44:30
I am trying to check the status of a SHOUTcast stream using this URL: http://85.17.167.136:8684/7.html ... which returns data like: <HTML><meta http-equiv="Pragma" content="no-cache"></head><body>7,1,77,100,7,128,+44(0)7908 340 811 Follow Us @visionradiouk</body></html> I know that the after the first comma returns 1 if the stream is up and running or returns 0 if the stream is down. My problem is getting the html of that page? I use this code, which works on other websites like Google etc. TextView tView = (TextView) findViewById(R.id.textView1); String htmlCode = ""; try { URL url = new URL(

Parsing SHOUTcast server information table with Javascript?

烂漫一生 提交于 2019-12-02 03:36:39
问题 I'm currently trying to parse the html page http://84.19.184.204:8000/played.html using JS. But it's been hard since I'm new to JS... The html page contains a table which has the history of last played songs... This list is what I want to parse. I use XMLHttpRequest() but I can't understand how to parse the elements :( Can someone help me out? 回答1: Given the static nature of the layout of Shoutcast played.html pages, a regular expression would probably be the best choice to extract

Playing mp3 Shoutcast streams with HTML5 audio in Firefox?

只愿长相守 提交于 2019-12-01 20:47:40
I'm trying to play mp3 shoutcast stream radio stations with HTML5 audio. I don't think it will be relevant but here is the code anyway: var player = new Audio(); player.autobuffer = true; player.src = "http://173.192.48.71:9048/;"; player.volume = 1; player.play(); Shoutcast detects that request comes from browser and returns radio status page, so I put ";" at the end of stream which forces server to return audio stream instead of status page. This works fine in Chrome and Safari, but not in Firefox. Firefox for some reason detects this as text/plain content and refuses to play it with this

ShoutCast over SSL

血红的双手。 提交于 2019-12-01 12:16:08
So I've gone ahead and set up my ShoutCast server DNAS and set my DSP in Winamp on my host computer. The server listens on port 8000, so per some instructions I installed an output plugin for winamp (Shoutcast DSP) and used 8000 and the password to connect. Server accepts the connection. Now, what the heck do I do now? My host computer is SSL secured and the DNAS server is installed within the secure web directory (if that matters). My desired end result is that I want to listen to my ShoutCast setup at home (host computer) from any computer. I try browsing to my ip address and port 8000

Flex/Flash Shoutcast player

被刻印的时光 ゝ 提交于 2019-12-01 10:58:25
I am trying to build a flash player for my company's Shoutcast server, and have seen a few articles about it on the 'net, including this SO question here . However, I can't seem to get the audio stream to actually play. It seems to be connecting alright, but calling stream.play() doesn't seem to do anything. I have tried the code in the SO question I have linked to, and have also tried something similar to this (sorry i don't remember the exact syntax): public function stream() { private var url:URLREQUEST = "my.domain.com"; private var sStream:Sound = new Sound(); sStream.load(url); sStream

ShoutCast over SSL

末鹿安然 提交于 2019-12-01 09:47:14
问题 So I've gone ahead and set up my ShoutCast server DNAS and set my DSP in Winamp on my host computer. The server listens on port 8000, so per some instructions I installed an output plugin for winamp (Shoutcast DSP) and used 8000 and the password to connect. Server accepts the connection. Now, what the heck do I do now? My host computer is SSL secured and the DNAS server is installed within the secure web directory (if that matters). My desired end result is that I want to listen to my

Flex/Flash Shoutcast player

故事扮演 提交于 2019-12-01 09:08:28
问题 I am trying to build a flash player for my company's Shoutcast server, and have seen a few articles about it on the 'net, including this SO question here. However, I can't seem to get the audio stream to actually play. It seems to be connecting alright, but calling stream.play() doesn't seem to do anything. I have tried the code in the SO question I have linked to, and have also tried something similar to this (sorry i don't remember the exact syntax): public function stream() { private var

Receiving Info of a ShoutCast stream on Android

泄露秘密 提交于 2019-11-30 15:48:43
问题 I am currently making an app to go with my online radio site, I am coding it with Android 2.2 (API 8) and I have got the Shoutcast Stream working with two buttons. Here is the code on my main class: public class GrooveOfMusicRadioActivity extends Activity { /** Called when the activity is first created. */ MediaPlayer mediaPlayer; Button start, stop; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); start = (Button)

Icecast/shoutcast streaming on Android

ぃ、小莉子 提交于 2019-11-30 15:20:54
问题 Is there a way to stream shoutcast/icecast on the android? Passing the icecast URL to the mediaplayer does not work and after researching the topic it seems it is because android can't play raw aac files without a media container. What can I do to get around this? Thanks 来源: https://stackoverflow.com/questions/2568665/icecast-shoutcast-streaming-on-android