icy-metaint not set

Below you can find a nice article … How Metadata work for Radio Stream

icy-metaint

PHP can parse song metadata from ICY streams including most of the streams on ShoutCast and IceCast.

1. Add “ICY Metadata: 1” to the HTTP GET headers.

// connect to server
$fp = fsockopen($host, $port, $errno, $errstr, 90);
if (!$fp) {
echo “$errstr ($errno)
\n”;
} else {
$out = “GET $path HTTP/1.0\r\n”;
$out .= “Icy-MetaData:1\r\n”;
$out .= “\r\n”;
fwrite($fp, $out);
}

2. Parse the icy-metaint from the HTTP response headers.

// check whether icy-metaint is present
if(!isset($headers[“icy-metaint”])) {
die(“icy-metaint not set”);
}

3. Begin the stream and get metadata information

The SHOUTcast/Icecast Radio Stream will return ICY 200 OK instead of HTTP 200 OK in its response.


Note: Please make sure with Radio Hosting Support … if icy-metaint is present in your Radio Stream

No Redirections in Radio Stream:

http://listen.domain.com/radiostream ==> http://streaming.domain.com/RadioStream?group=989


Note: Please make sure your Radio Stream don’t have any direction.

Posted in: HTML5, Radio

About Us

We are one of the leading provider for HTML5 MP3/MP4 Horizontal Playlist, Vertical Playlist, Karaoke, Lyrics, FeedBurner Podcast, Amazon S3, AWS CloudFront, CDN, Wordpress, Joomla, Standalone, Video, Radio, Folder Player.

Connect With Us