icy-metaint not set Posted in on March 07, 2014 by admin Below you can find a nice article … How Metadata work for Radio Stream 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 ← Make HTML5 Video Player with Playlist Responsive Autoplay with iOS / Androids →