shoutcast

How to get HTML5 to play a stream from Shoutcast

瘦欲@ 提交于 2020-06-26 14:16:23
问题 Currently I am using a flash player to play my shoutcast stream. I would like people on mobile devices to be able to listen as well, and it seems HTML5 is the way to go. How would I go about getting this shoutcast stream "stardust.wavestreamer.com:3353" working in HTML5? I tried using but that does not seem to be compatible with shoutcast. 回答1: If you connect to a SHOUTcast server with a web browser, it will detect your browser because it has Mozilla in the User-Agent header, and send you to

How to get HTML5 to play a stream from Shoutcast

陌路散爱 提交于 2020-06-26 14:15:03
问题 Currently I am using a flash player to play my shoutcast stream. I would like people on mobile devices to be able to listen as well, and it seems HTML5 is the way to go. How would I go about getting this shoutcast stream "stardust.wavestreamer.com:3353" working in HTML5? I tried using but that does not seem to be compatible with shoutcast. 回答1: If you connect to a SHOUTcast server with a web browser, it will detect your browser because it has Mozilla in the User-Agent header, and send you to

How to read icy protocol in Java ?

自古美人都是妖i 提交于 2020-01-23 07:08:48
问题 I want to read data from a streaming icy protocol.The problem is that all the libraries that I've tried (dsj,MP3SPI) use the HttpUrlConnection to do this.However I've tried it on my windows 7 and I've received "Invalid http response" which is normal cause "HTTP 200 OK" is different from "ICY 200 OK".I know this could be accomplished with sockets but I'm a beginner so if any can provide a few lines o code so I can get an idea I would appreciate.Also if you have some solutions please share them

How to read icy protocol in Java ?

强颜欢笑 提交于 2020-01-23 07:08:06
问题 I want to read data from a streaming icy protocol.The problem is that all the libraries that I've tried (dsj,MP3SPI) use the HttpUrlConnection to do this.However I've tried it on my windows 7 and I've received "Invalid http response" which is normal cause "HTTP 200 OK" is different from "ICY 200 OK".I know this could be accomplished with sockets but I'm a beginner so if any can provide a few lines o code so I can get an idea I would appreciate.Also if you have some solutions please share them

android code for streaming shoutcast stream breaks in 2.2

六眼飞鱼酱① 提交于 2020-01-10 07:36:40
问题 The following code works fine on Android 2.1update1 - package com.troubadorian.android.teststreaming; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.ViewGroup; import android.view.Window; import android.view.animation.AnimationUtils; import android.widget.AdapterView; import android.widget.BaseAdapter; import android.widget.Button; import android.widget.Gallery; import android.widget

I have a few questions about the setup of an mp3 radio stream

℡╲_俬逩灬. 提交于 2020-01-05 05:55:29
问题 What's the difference between all of these? And what are their meanings? /;stream.mp3 [What exactly does the ; semicolon signify after the / slash?] Also, what's the difference if I take off the stream.mp3 , and just leave the semicolon after the slash /; or if I leave `stream.mp3 attached? /stream [How come this one has only stream , and that's it. [There's no ; semicolon after the / slash and there's no stream.mp3 ? Why would one stream be able to work without a semicolon, and why would one

HttpWebRequest for ShoutCast on Windows Phone7

谁说我不能喝 提交于 2020-01-01 14:36:15
问题 I tring to stream shoutcast stream in my window phone 7 app I start an async HttpWebRequest like this //Init Request HttpWebRequest myHttpWebRequest = (HttpWebRequest)WebRequest.Create("http://ACommonoShoutCastUrl:8000"); myHttpWebRequest.Headers["Icy-MetaData"] = "1"; myHttpWebRequest.UserAgent = "WinampMPEG/5.09"; myHttpWebRequest.AllowReadStreamBuffering = true; //Call // Create an instance of the RequestState and assign the previous myHttpWebRequest object to its request field.

Android: Redirecting pls file so that mediaplayer can read it

不羁岁月 提交于 2019-12-31 06:20:29
问题 I want to play a radio shoutcast but its a pls file format by looking at the link: http://yp.shoutcast.com/sbin/tunein-station.pls?id=13361 It doesn't play at the moment, I have got: Initializing: player = new MediaPlayer(); try { player.setDataSource("http://yp.shoutcast.com/sbin/tunein-station.pls?id=13361"); } catch (IllegalArgumentException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (SecurityException e) { // TODO Auto-generated catch block e.printStackTrace(); }

Android: Redirecting pls file so that mediaplayer can read it

青春壹個敷衍的年華 提交于 2019-12-31 06:20:02
问题 I want to play a radio shoutcast but its a pls file format by looking at the link: http://yp.shoutcast.com/sbin/tunein-station.pls?id=13361 It doesn't play at the moment, I have got: Initializing: player = new MediaPlayer(); try { player.setDataSource("http://yp.shoutcast.com/sbin/tunein-station.pls?id=13361"); } catch (IllegalArgumentException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (SecurityException e) { // TODO Auto-generated catch block e.printStackTrace(); }

Playing mp3 Shoutcast streams with HTML5 audio in Firefox?

一世执手 提交于 2019-12-31 01:47:45
问题 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