I think that looking at the code will make you understand more properly. I have given the index.php, which you can try in your module :
PHP Code:
<?php
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You don't have right to access this file");
}
$index = 0;
require_once("impfile.php");
$module_name = basename(dirname(__FILE__));
include("headers.php");
$emb = $_GET['vid'];
OpenTable();
?>
<EMBED type='application/mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer' name='mediaPlayer'
bgcolor='darkred' showcontrols="true"
showdisplay='0' showstatusbar='-2' width="410" height="325"
src="<?php echo "$emb"; ?>" autostart="true" designtimesp='5311' loop="false">
</EMBED>
<?php
CloseTable();
include("footers.php");
?>
Bookmarks