Source Code:
<?
$rtmp = '';
if (isset($_POST['rtmp']))
{
$rtmp = $_POST['rtmp'];
}
else if (isset($_GET['rtmp']))
{
$rtmp = $_GET['rtmp'];
}
$stream = '';
if (isset($_POST['stream']))
{
$stream = $_POST['stream'];
}
else if (isset($_GET['stream']))
{
$stream = $_GET['stream'];
}
?>
<html>
<head>
<title>Flash Streaming Video Player</title>
</head>
<body>
<?
if (isset($rtmp))
{
?>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="550" height="400" id="player_stream" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="player_stream.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="flashvars" value="rtmp_url=<?=$rtmp?>&thestream=<?=$stream?>" />
<embed src="player_stream.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="player_stream" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="rtmp_url=<?=$rtmp?>&thestream=<?=$stream?>" />
</object>
<?
}
else
{
echo "No Movie Chosen";
}
?>