I am trying to make a website for my brothers band found a webcasting feature from jet audio. I got a PHP code to feed the stream from the cast to the website, but I can't make it work from the website builder's preveiw site in browser option.
I am hoping that someone will take time to tell if php code needs to be loaded on the sever before it works and/or can debug this code:
EDIT: is there a simple HTML way of doing this? like <embed scr = http:// 000.000.0.000> (as this webcast would be served from a home computer) and if so what's the correct way of writing it out?
thx for any help
<?
/
+--------------------------------------------------------------------------
| MkPortal
| ========================================
| by Meo aka Luponero <Amedeo de longis>
|
| (c) 2004 mkportal.it
| http://www.mkportal.it
| Email: luponero@mclink.it
|
+---------------------------------------------------------------------------
|
| > MKPortal
| > Written By Amedeo de longis
| > Date started: 9.2.2004
|
+--------------------------------------------------------------------------
|
| > Blocco Multi Radio Streaming© v1.0
| > Written By Altarax
| > http://www.altaraxthinkingstyle.info
| > altarax@gmail.com
|
+--------------------------------------------------------------------------
|
| > Per favore, non rimuovete e rispettate i sopra indicati copyrights
|
+--------------------------------------------------------------------------
/
global $mkportals, $DB, $mklib, $Skin;
if (isset($_POST['radio'])) {
$tmp = explode('#',$_POST['radio']);
$stream = $tmp[0];
$onair = $tmp[1];
$embed = "<embed src=$stream type=\"video/x-ms-asf-plugin\" pluginspage=\"http://www.microsoft.com/windows/mediaplayer/download/default.asp\" align=\"middle\" width=\"115\" height=\"40\" autostart=\"1\" showcontrols=\"1\" showdisplay=\"false\" showstatusbar=\"True\" showpositioncontrols=\"0\" showaudiocontrols=\"1\" showtracker=\"0\" showgotobar=\"0\" showcaptioning=\"0\" autorewind=\"0\" animationatstart=\"1\" transparentatstart=\"0\" allowchangedisplaysize=\"0\" allowscan=\"0\" enablecontextmenu=\"0\"></embed>";
} else {
$stream = "";
$embed = "";
$onair = false;
}
$content = "
<td align=\"center\" valign=\"middle\">
On Air now:
<form method='POST'>
<select size=\"1\" name=\"radio\" onChange=\"submit()\">
<option selected>Select Radiostation</option>
<option value=\"http://84.41.150.180:9000#Knights Rejoice Radio\">Knights Rejoice Radio</option>
</select>
</form>
$embed
</td>
<tr>
</tr>";
unset($stream);
unset($embed);
?>