radioplayer.php
Código:
<? include "getinfo.php";?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<meta name="description" content="Radio Player" />
<meta name="keywords" content="Radio Player" />
<meta name="author" content="Radio Player originaly made by: Niklas Pull - http://pull.zapto.org" />
<title>Radio Player</title>
<style type="text/css">
<!--
body {margin:0; padding: 0; font-family: Verdana; font-size: 10px;}
a{text-decoration:none; background-color:inherit; color:#26c;}
a:hover{text-decoration:underline;}
#main {width: 350px; height: 100px; position: relative; left: 0px; top: 0px; margin:0; padding:0; background-image: url(img/player.png); background-repeat: no-repeat; background-attachment: fixed; background-color: #eeeeee}
#display {width: 315px; height: 39px; position: relative; left: 18px; top: 18px;}
#display_low {width: 310px; height: 21px; position: relative; left: 3px; top: 3px;}
#bottom {width: 350px; height: 39px; position: relative; left: 0px; top: 22px;}
#songtitle {width: 310px; height: 12px; position: relative; left: 3px; top: 3px;}
#station {width: 150px; position: relative; left: 23px; top: 30px;}
#bitrate {width: 55px; position: relative; left: 185px; top: 18px;}
#equalizer {width: 55px; position: relative; left: 280px; top: 0px;}
#icon {width: 55px; position: relative; left: 300px; top: 10px;}
#iframe {width: 0px; position: relative; left: 0px; top: 0px;}
.table {font-family: Verdana; font-size: 10px;}
-->
</style>
</head>
<body onLoad="javascript:sndReq();" bgcolor="#CC9900">
<div id="main">
<div id="display">
<div id="songtitle">
<div id="messages">
</div>
</div>
<div id="display_low">
<table border="0" cellpadding="0" cellspacing="0" width="300" height="21">
<tr class="table">
<td align="left" valign="bottom">
<i><font size="3"color="#FFFF99" face="Comic Sans MS"><?=$servertitle;?></font></i>
</td>
<td align="center" valign="bottom">
<font size="3"color="#FFFF99" face="Comic Sans MS"><?=$bitrate;?> kbps </font>
</td>
<td align="right" valign="bottom">
<img src="img/equalizer_<?=$status;?>.gif" height="21">
</td>
</tr>
</table>
</div>
</div>
<div id="bottom">
<table border="0" cellpadding="0" cellspacing="0" width="350" height="39">
<tr class="table">
<td width="140">
<img src="img/player2.png" width="140" height="39" usemap="#play" border="0">
</td>
<td width ="53" height="39" background="img/player4.png">Switch to:
</td>
<td width="157" height="39" background="img/player3_<?=$z;?>.png" >
<a href="radioplayer.php?z=<?=$mode;?>&status=play"><img src="img/small_<?=$mode;?>.png" border="0"></a>
<a href="radioplayer.php?z=<?=$mode2;?>&status=play"><img src="img/small_<?=$mode2;?>.png" border="0"></a> <a href="radioplayer.php?z=<?=$mode3;?>&status=play"><img src="img/small_<?=$mode3;?>.png" border="0"></a>
</td>
</tr>
</table>
</div>
</div>
<p>
<?php
if($status=="play" && $z=="real"){
echo <<<_END
<OBJECT
ID=audio1
CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"
HEIGHT=0 WIDTH=0>
<PARAM NAME="controls" VALUE="ControlPanel">
<PARAM NAME="console" VALUE="Clip1">
<param name="_ExtentX" value="10001">
<param name="_ExtentY" value="820">
<param name="AUTOSTART" value="1">
<param name="SHUFFLE" value="0">
<param name="PREFETCH" value="0">
<param name="NOLABELS" value="0">
<param name="LOOP" value="0">
<param name="NUMLOOP" value="0">
<param name="CENTER" value="0">
<param name="MAINTAINASPECT" value="0">
<param name="BACKGROUNDCOLOR" value="#ffffff">
<param name="SRC" ref value="http://$scip:$scport/listen.pls?sid=1">
<EMBED type="audio/x-pn-realaudio-plugin" CONSOLE="Clip1" CONTROLS="ControlPanel"
HEIGHT=0 WIDTH=0 AUTOSTART=true></OBJECT>
_END;
}
if($status=="play" && $z=="wmp"){
echo <<<_END
<OBJECT ID="MediaPlayer" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..."
TYPE="application/x-oleobject" width="0" height="0">
<PARAM NAME="FileName" VALUE="http://$scip:$scport" valuetype="ref" ref>
<param name="AudioStream" value="1">
<param name="AutoSize" value="0">
<param name="AutoStart" value="1">
<param name="AnimationAtStart" value="0">
<param name="AllowScan" value="-1">
<param name="AllowChangeDisplaySize" value="-1">
<param name="AutoRewind" value="0">
<param name="Balance" value="0">
<param name="BaseURL" value>
<param name="BufferingTime" value="5">
<param name="CaptioningID" value>
<param name="ClickToPlay" value="-1">
<param name="CursorType" value="0">
<param name="CurrentPosition" value="-1">
<param name="CurrentMarker" value="0">
<param name="DefaultFrame" value>
<param name="DisplayBackColor" value="0">
<param name="DisplayForeColor" value="16777215">
<param name="DisplayMode" value="-1">
<param name="DisplaySize" value="-1">
<param name="Enabled" value="-1">
<param name="EnableContextMenu" value="-1">
<param name="EnablePositionControls" value="-1">
<param name="EnableFullScreenControls" value="-1">
<param name="EnableTracker" value="-1">
<param name="InvokeURLs" value="-1">
<param name="Language" value="-1">
<param name="Mute" value="0">
<param name="PlayCount" value="0">
<param name="PreviewMode" value="0">
<param name="Rate" value="1">
<param name="SAMILang" value>
<param name="SAMIStyle" value>
<param name="SAMIFileName" value>
<param name="SelectionStart" value="-1">
<param name="SelectionEnd" value="-1">
<param name="SendOpenStateChangeEvents" value="-1">
<param name="SendWarningEvents" value="-1">
<param name="SendErrorEvents" value="-1">
<param name="SendKeyboardEvents" value="0">
<param name="SendMouseClickEvents" value="0">
<param name="SendMouseMoveEvents" value="0">
<param name="SendPlayStateChangeEvents" value="-1">
<param name="ShowCaptioning" value="0">
<param name="ShowControls" value="-1">
<param name="ShowAudioControls" value="-1">
<param name="ShowDisplay" value="0">
<param name="ShowGotoBar" value="0">
<param name="ShowPositionControls" value="0">
<param name="ShowStatusBar" value="-1">
<param name="ShowTracker" value="0">
<param name="TransparentAtStart" value="0">
<param name="VideoBorderWidth" value="0">
<param name="VideoBorderColor" value="333333">
<param name="VideoBorder3D" value="-1">
<param name="Volume" value="-1">
<param name="WindowlessVideo" value="-1">
<EMBED TYPE="application/x-mplayer2" SRC="http://$scip:$scport"
NAME="MediaPlayer" AUTOSTART=True>
</EMBED></OBJECT>
_END;
}
if($status=="play" && $z=="qp"){
echo <<<_END
<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab"
WIDTH="0" HEIGHT="0" >
<PARAM NAME="src" VALUE="http://$scip:$scport/listen.pls?sid=1" >
<EMBED PLUGINSPAGE="http://www.apple.com/quicktime/download/" SRC="UNeedQT.qtif"
TYPE="image/x-quicktime" WIDTH="0" HEIGHT="0" volume="50"
QTSRC="http://$scip:$scport/listen.pls?sid=1" AUTOPLAY="true" hidden="true">
</EMBED>
</OBJECT>
_END;
}
if($status=="play" && $z=="flash"){
echo <<<_END
<embed type="application/x-shockwave-flash" flashvars="audioUrl=http://$scip/test.mp3&autoPlay=true" src="http://www.google.com/reader/ui/3523697345-audio-player.swf" width="0" height="0" quality="best" autoplay="true"></embed>
_END;
}
?>
<map name="play">
<area shape="rect" alt="Stop" coords="55,0,78,27" href="radioplayer.php?z=<?=$z;?>" target="_self">
<area shape="rect" alt="Play" coords="21,0,47,28" href="radioplayer.php?z=<?=$z;?>&status=play" target="_self">
</map>
</p>
</body>
</html>
Codigo en html para mostrar la radio y para mostrar cancion actual y siguiente cancion.
Código HTML:
<iframe name="radio" style="-webkit-border-radius: 15px;-moz-border-radius:15px;" frameborder="0" scrolling="no" src="radioplayer.php?z=<?=$z?>&status=play" height="100" width="350"></iframe>
Código HTML:
<table width="900" border="0" align="center">
<tr>
<td width="450"><p>Canción sonando:</p></td>
<td width="450"><p>Canción siguiente:</p></td>
</tr>
<tr>
<td><div id="currentsong" align="center">
</div></td>
<td><div id="nextsong" align="center">
</div></td>
</tr>
</table>