shoutcast

Icecast/shoutcast streaming on Android

自古美人都是妖i 提交于 2019-11-30 14:19:43
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

jPlayer and Shoutcast Configuration

那年仲夏 提交于 2019-11-30 13:28:53
问题 I am trying to set up JPlayer plugin and Shoutcast. According to their website this is possible to do. How do I get jPlayer to play a SHOUTCast stream? You need to setMedia to the stream URL. For example, SHOUTcast server: http://mp3-vr-128.as34763.net/ MP3 stream URL: http://mp3-vr-128.as34763.net/;stream/1 I have tried to do this <script type="text/javascript"> //<![CDATA[ $(document).ready(function(){ $("#jquery_jplayer_1").jPlayer({ ready: function (event) { $(this).jPlayer("setMedia", {

How to stream a shoutcast radio broadcast in Flash (Shoutcast Flash Player)

只谈情不闲聊 提交于 2019-11-30 10:11:52
I've been looking for a solution to this for years, but nothing is conclusively documented. There are many Shoutcast Flash players out there (e.g. radio.de) so I know it's possible. However, most of my research leads to this: s = new Sound(); s.loadSound ("url.of.shoutcaststream:8003",true); Which works for me in FireFox but not in IE. I don't want to buy a component, I want to know how those components do it so that I can build my own custom player. You're almost there. The full mantra is: s = new Sound(); s.loadSound ("http://url.of.shoutcaststream:8003/;",true); Notice the trailing slash

PHP script to extract artist & title from Shoutcast/Icecast stream

帅比萌擦擦* 提交于 2019-11-30 07:23:45
I found a script which can extract the artist & title name from an Icecast or Shoutcast stream. I want the script to update automatically when a song changed, at the moment its working only when i execute it. I'm new to PHP so any help will be appreciated. Thanks! define('CRLF', "\r\n"); class streaminfo{ public $valid = false; public $useragent = 'Winamp 2.81'; protected $headers = array(); protected $metadata = array(); public function __construct($location){ $errno = $errstr = ''; $t = parse_url($location); $sock = fsockopen($t['host'], $t['port'], $errno, $errstr, 5); $path = isset($t[

android code for streaming shoutcast stream breaks in 2.2

旧时模样 提交于 2019-11-29 23:18:31
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.ImageButton; import android.widget.ProgressBar; import android.widget.TextView; import android.widget

How to stream a shoutcast radio broadcast in Flash (Shoutcast Flash Player)

两盒软妹~` 提交于 2019-11-29 15:28:22
问题 I've been looking for a solution to this for years, but nothing is conclusively documented. There are many Shoutcast Flash players out there (e.g. radio.de) so I know it's possible. However, most of my research leads to this: s = new Sound(); s.loadSound ("url.of.shoutcaststream:8003",true); Which works for me in FireFox but not in IE. I don't want to buy a component, I want to know how those components do it so that I can build my own custom player. 回答1: You're almost there. The full mantra

ICY metadata support with ffmpeg

拈花ヽ惹草 提交于 2019-11-29 08:06:03
Is there any way to get ICY metadata from shoutcast stream using FFMpeg ? One way would be to deal with the connection/stream by myself and send Custom IOStream to ffmpeg. Is there any other simple way? or demuxer available ? Thanks Brad There was discussion of a patch for supporting it here: http://web.archiveorange.com/archive/v/yR2T400567mWEyyZHg3k But, it doesn't look like it made it in yet. I suggest you simply parse this out yourself. See my answer here for how to do this: https://stackoverflow.com/a/4914538/362536 Alternatively, you can just access /7.html on SHOUTcast servers, and you

Using php to opening live audio stream on android

爱⌒轻易说出口 提交于 2019-11-29 05:12:41
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: audio/mpeg"); header("Transfer-Encoding: chunked"); header("Connection: close"); $sock = fsockopen(

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

孤街浪徒 提交于 2019-11-28 15:05:11
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 Stream connected!"); console.error(stream.headers); }); // When a chunk of data is received on the

Overriding Node.js HTTP parser

邮差的信 提交于 2019-11-28 08:42:22
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's http.request() function so that I can make it work with SHOUTcast servers. Connecting to SHOUTcast