shoutcast

How to provide restricted access MP3 streaming over the internet

百般思念 提交于 2019-12-06 16:00:15
I need to stream several "channels" (by channels I'm thinking of radio channels, so playlists might be more appropriate) of queued MP3 files to around 200 clients over the internet from a Windows 2008 R2 / IIS 7 web server. Encryption of the stream is not a requirement. I need some way to ensure each client can only stream one channel at a time. I was thinking of restricting by IP address, and would welcome any suggestions on how I might go about this, or if there may be a better way. For my clients I assume I'd need a player on the client end that could facilitate "logging in". Ideally I

how to get informed of new song info while retrieving metadata from shoutcast stream

风格不统一 提交于 2019-12-06 12:04:19
问题 Background: I'm streaming radio using double buffering approach for html shoutcast. I get metadata information from stream using http://www.smackfu.com/stuff/programming/shoutcast.html Problem I have three problems. 1- I already use a urlconnection and inputstream for listening radio. I don't want to open a new connection to retrieve metadata. But when I tried to get both from same inputstream, I couldn't listen radio anymore. I guess this is not possible and I have to use two seperate

Php output continuous stream

痴心易碎 提交于 2019-12-06 11:06:14
问题 So I've been experimenting with PHP's fOpen function and I've had a lot of success with reading sound files. Now, I'm trying to create a sort of "relay" for shoutcast streams. File_get_contents is probably the poorest way of doing this, since the data is continuous. Would using php sockets yield better results? Tl;dr What's the best way to output a continuous stream of audio/mpeg data? 回答1: I've done this with PHP and SHOUTcast streams in the past. It's certainly possible, but keep in mind

Getting hiccup noise from Shoutcast

跟風遠走 提交于 2019-12-06 10:08:14
I'm trying to read Shoutcast stream and then play it using MediaStreamSource. Here is the excellent open source project that saved lot of my time. After little bit modification I'm able to hear perfect sound. But the problem is I'm getting a periodic blip/hiccup kind of noise. Any idea how I can stop that noise. I thought its may be Shoutcast sends some metadata in interval but don't find out how to stop that. Tried with request.Headers["Icy-MetaData"] = "0"; But it doesn't fix my problem either. Any help will be greatly appreciated. Edit1: I did some more investigation. I read my stream data

javazoom Player wont work on Windows with SHOUTcast stream (says invalid Https Request)

风流意气都作罢 提交于 2019-12-06 08:12:51
I'm writing a small app to play a shoutcast stream, and I am using javazoom.jl.player.Player to do this. Here is my code: package music; import java.io.InputStream; import java.net.URL; import javazoom.jl.player.Player; class audiostream extends Thread { private Player mediafilePlayer; private volatile boolean shouldPlay = true; @Override public void run() { while (true) { if (shouldPlay) { player(); } } } public void player() { try { URL mediafile = new URL("http://hi1.streamingsoundtracks.com:8000/;"); InputStream stream = mediafile.openStream(); mediafilePlayer = new Player(stream);

Python: Get name of shoutcast/internet radio station from url

醉酒当歌 提交于 2019-12-06 07:09:12
问题 I've been trying to get the name/title of internet radio stations based on the url in python, but with no luck so far. It seems that internet radio stations use another protocol than HTTP, but please correct me if I'm wrong. For example: http://89.238.146.142:7030 Has the title: "Ibiza Global Radio" How can i store this title in a variable? Any help will be deeply appreciated :) Kind regards, frigg 回答1: From a little curl , it seems to be using shoutcast protocol, so you're looking for an

Getting metadata from SHOUTcast using IcyStreamMeta

半腔热情 提交于 2019-12-05 01:38:28
问题 I am writing an app for Android that grabs meta data from SHOUTcast mp3 streams. I am using a pretty nifty class I found online that I slightly modified, but I am still having 2 problems. 1) I have to continuously ping the server to update the metadata using a TimerTask. I am not fond of this approach but it was all I could think of. 2) There is a metric tonne of garbage collection while my app is running. Removing the TimerTask got rid of the garbage collection issue so I am not sure if I am

How to parse a none standard HTTP response?

北慕城南 提交于 2019-12-05 01:24:48
I'm having a real hard time figuring out how to parse a none standard HTTP response. The none standard response contains ICY 200 OK instead of HTTP 200 OK . Here is a sample URL that sends the none standard HTTP response. http://50.117.121.162:80 Since Android 4.4 HttpURLConnection will no longer work with these none standard responses. I have tried using the HttpClient by Apache but it doesn't work because of the none standard HTTP response. I have then tried following the guide for adding a custom response parser , but Android doesn't seem have all the classes needed to do it. I'm really

Play a Shoutcast Stream on iPhone with HTML5

自闭症网瘾萝莉.ら 提交于 2019-12-05 01:09:44
问题 I know this question is already asked in past, but i finally found no answer.... So I got a shoutcast stream, encoding audio/mpeg and I want create a web-app for my iphone to listen to my stream mobile. I tried several methods of http://mydomain.com:8000/. With semicolon, with stream.nsv, with stream.nsv&type=mp3 and so on... I tested it everytime with the Safari browser und nothing happened. I tried several options in the html5 audio tag. preload, auto-buffering etc..... it's still quiet...

Is there a true cross browser solution for shoutcast streams?

时光毁灭记忆、已成空白 提交于 2019-12-04 18:36:34
Shoutcast stream is giving me a serious headache. I tried: JWplayer Jplayer Html5 Audio None of these are true cross-platform-browser solutions. THey can't even play all shoutcast streams! Is there any other solution to this problem? Maybe I can pass stream through some php library? Any solutions for this? Since nobody is answering, I ransacked web today and found soundmanager2 - which at least in my tests works fine both on desktop and mobile browsers. I tested on Android, IOS, on desktop side chrome,firefox,safari and all shoutcast channels seem to work fine. So here you go :) http://www