PHP Get Radio Stream Type Version

Live Audio Streaming, Internet Radio Player

Shoutcast1 Stream: http://shoutcast-server:port/;audio.mp3
Shoutcast2 Stream: http://shoutcast-server:port/streamname;audio.mp3
Icecast2 Stream: http://icecast-server:port/streamname

Shoutcast server stream need “;” OR “;audio.mp3” at end of stream URL, so change accordingly

 

<?php

function radioStreamType($stream)
{

$pp = parse_url($stream);
$type = strstr($pp[‘path’], ‘;audio.mp3’);

if($type==’;audio.mp3′)
{
if($pp[‘path’]==”/;audio.mp3″ || $pp[‘path’]==”;audio.mp3″) return “shoutcast1”;
return “shoutcast2”;
}
else
{
return “icecast”;
}
}

?>

 

shoutcast-version-1

radioStreamType(“http://shoutcast-server:port/;audio.mp3”);

shoutcast-version-2

radioStreamType(“http://shoutcast-server:port/streamname;audio.mp3”);

icecast

radioStreamType(“http://icecast-server:port/streamname”);

ICECAST SHOUTCAST METADATA

Radio Stream Playlist

Radio Live Streaming

 

HTML5 MP3 Player with Playlist

Windows Playlist: playlist.asx

<asx version = "3.0">
    <Title>Radio Title</Title>
    <Author>https://www.svnlabs.com</Author>
    <Copyright>SVN Labs</Copyright>
    <PARAM name="HTMLView" value="https://www.svnlabs.com" />
    <MoreInfo href="https://www.svnlabs.com" />
    <entry>
        <ref href="http://stream-ip:port/stream" />
        <Title>Radio Title</Title> 
        <Author>https://www.svnlabs.com</Author>
    </entry>
</asx>

 

Quicktime Playlist: playlist.qtl

<?xmlversion="1.0"?>
<?quicktime type="application/x-quicktime-media-link"?>
<embed src="icy://stream-ip:port/stream" autoplay="true" />

 

Winamp Playlist: playlist.pls


numberofentries=1
File1=http://stream-ip:port/stream
Title1=Radio Title
Length1=-1
version=2

 

Realmedia Playlist: playlist.ram

http://stream-ip:port/stream

Play Favorite Radio FM Stream in HTML5

HTML5 <audio> the element enable native audio playback within the browser. It supports all browsers i.e. Firefox, Chrome, Safari, IE and Opera.

HTML5 Player support Radio FM MP3 Streams from Icecast, Shoutcast, Wowza, Amazon S3 and other CDNs.. customize your radio playlist now.