shoutcast

How could I play a shoutcast/icecast stream using HTML5?

微笑、不失礼 提交于 2019-11-28 03:29:29
Is it possible to play a shoutcast/icecast stream using HTML5? If so, how should I implement it? Add a semicolon to the end of the http request. It IS the protocol set forth by shoutcast to override it's browser detection. Like this: <audio controls src="http://shoutcast.internet-radio.org.uk:10272/;"></audio> There is a big problem with SHOUTcast, which I suspect is responsible for it not working even in Chrome which is supposed to support MP3. SHOUTcast can serve three different types of response: a native-SHOUTcast “ICY” protocol streaming audio response. It decides to do this if the player

MediaElementAudioSource outputs zeroes due to CORS access restrictions

断了今生、忘了曾经 提交于 2019-11-28 01:58:58
<script> // Create a new instance of an audio object and adjust some of its properties var audio = new Audio(); audio.src = 'http://subdomain.domain.org:port/;stream/1'; audio.controls = true; audio.loop = true; audio.autoplay = true; audio.crossorigin="anonymous"; // Establish all variables that your Analyser will use var canvas, ctx, source, context, analyser, fbc_array, bars, bar_x, bar_width, bar_height; // Initialize the MP3 player after the page loads all of its HTML into the window window.addEventListener("load", initMp3Player, false); function initMp3Player(){ document.getElementById(

Using php to opening live audio stream on android

瘦欲@ 提交于 2019-11-27 19:03:50
问题 We have shoutcast/icecast audio streams. I'd like to be able to provide a link such as mobiledroid.php on our web site that will open using default player. I've seen this done on another site so I do know it's possible. I assume it uses php headers and streams via the php file as a stream? Using Brad's instructions, the android actually gives the option to open with sound player. Nice one. It also plays on WMP through PC but not on the android how the above link plays header("Content-type:

Is it possible to play shoutcast internet radio streams with html5?

只愿长相守 提交于 2019-11-27 10:57:40
Is it possible to play shoutcast (or some) internet radio streams with html5? So I have next code: <html> <body> <audio src="http://shoutcast.internet-radio.org.uk:10272/" /> </body> </html> I save it as HTML page and start my browser (Google chrome 4.0.249.78, safary or FF) But it does not play/work!( And it does not play with any other internet radio I tried to play!( Why!?! What am I doing wrong? btw: from HTML5 (including next generation additions still in development) 2.6.1 Protocol concepts User agents can implement a variety of transfer protocols, but this specification mostly defines

Streaming audio from a Node.js server to HTML5 <audio> tag

痞子三分冷 提交于 2019-11-27 08:59:40
问题 I've been experimenting with binary streams in Node.js, and much to my amazement do actually have a working demo of taking a Shoutcast stream using node-radio-stream and pushing it into a HTML5 element using chunked encoding. But it only works in Safari! Here is my server code: var radio = require("radio-stream"); var http = require('http'); var url = "http://67.205.85.183:7714"; var stream = radio.createReadStream(url); var clients = []; stream.on("connect", function() { console.error("Radio

Overriding Node.js HTTP parser

扶醉桌前 提交于 2019-11-27 05:48:23
问题 I am using Node's basic http.request() function without problem on normal HTTP servers. I need to use http.request() (or similar) with SHOUTcast servers. The SHOUTcast "protocol" is fully compatible with HTTP, except for one detail... the first response line. Normal HTTP servers respond with: HTTP/1.1 200 OK SHOUTcast servers respond with: ICY 200 OK Again, the rest of the protocol is the same. The only difference is HTTP/1.x vs. ICY . I would like to extend, subclass, or somehow modify Node

Broadcast to Icecast / SHOUTcast with Objective-C, C, or C++

一曲冷凌霜 提交于 2019-11-27 04:33:59
I want to provide audio data into SHOUTcast or Icecast servers without using their own broadcaster, since i will be using this on various platforms including mobile. I need protocol descriptions, open source projects, or samples to be able to send audio data (from mic or file) using Objective-C, C or C++ to SHOUTcast and Icecast servers. Where can I find the information needed to build a proper SHOUTcast/Icecast source client? Comment: It's about time someone makes a SHOUTcast source client for mobile. I've been needing this for a while, but don't have time to build it, so kudos to you. Please

How could I play a shoutcast/icecast stream using HTML5?

心已入冬 提交于 2019-11-27 00:04:07
问题 Is it possible to play a shoutcast/icecast stream using HTML5? If so, how should I implement it? 回答1: Add a semicolon to the end of the http request. It IS the protocol set forth by shoutcast to override it's browser detection. Like this: <audio controls src="http://shoutcast.internet-radio.org.uk:10272/;"></audio> 回答2: There is a big problem with SHOUTcast, which I suspect is responsible for it not working even in Chrome which is supposed to support MP3. SHOUTcast can serve three different

MediaElementAudioSource outputs zeroes due to CORS access restrictions

牧云@^-^@ 提交于 2019-11-26 18:36:24
问题 <script> // Create a new instance of an audio object and adjust some of its properties var audio = new Audio(); audio.src = 'http://subdomain.domain.org:port/;stream/1'; audio.controls = true; audio.loop = true; audio.autoplay = true; audio.crossorigin="anonymous"; // Establish all variables that your Analyser will use var canvas, ctx, source, context, analyser, fbc_array, bars, bar_x, bar_width, bar_height; // Initialize the MP3 player after the page loads all of its HTML into the window

Broadcast to Icecast / SHOUTcast with Objective-C, C, or C++

北城以北 提交于 2019-11-26 17:33:11
问题 I want to provide audio data into SHOUTcast or Icecast servers without using their own broadcaster, since i will be using this on various platforms including mobile. I need protocol descriptions, open source projects, or samples to be able to send audio data (from mic or file) using Objective-C, C or C++ to SHOUTcast and Icecast servers. Where can I find the information needed to build a proper SHOUTcast/Icecast source client? 回答1: Comment: It's about time someone makes a SHOUTcast source