dynamic url's in divx web player
I would like to indicate absolute value as "http://mywebsite.com/myvideo.php?divx=1"; instead of "http://mywebsite.com/myvideo.divx"; . And I want to use mysql to call stored file url's. Can I do that according to the information below?
----------------------------------
The src parameter:
The src parameter is used to specify which video file the plug-in should attempt to
download and play. This file must have the “.avi”, “.divx” or “.div” extension.
If this parameter is omitted, the plugin will not attempt to download and play a file on
startup but will be ready for JavaScript calls to instruct it to do so at a later time (see
the JavaScript API Reference for details).
• Usage:
-> In the object tag:
-> In the embed tag:
src="[value]"
• Possible values:
-> A relative path, i.e. "movie.divx" or "../../videos/
myvideo.divx".
-> An absolute path, i.e. "http://mywebsite.com/myvideo.divx";.


It's possible:
HTML-Part:
</p> <p> ChaosNET - View Cover</p> <p> body {<br /> margin : 0px;<br /> }</p> <p> "></p> <p> "<br /> width="704" height="416"<br /> autoPlay="true"<br /> movieTitle=""<br /> bannerEnabled="false"<br /> previewImage=""<br /> pluginspage="http://go.divx.com/plugin/download/"<br /> allowContextMenu="true"<br /> id="embed228396"></p> <p>PHP-Part:
<br /> $sql = "SELECT filename, titel FROM video_files WHERE id = ".$_REQUEST['videoid'].";";<br /> $result = mysql_query($sql);<br /> # switch off zlib compression for download<br /> # for better compatibility with some browsers<br /> if (ini_get('zlib.output_compression'))<br /> ini_set('zlib.output_compression', 'Off');</p> <p> # send http headers<br /> header('Content-Disposition: attachment; filename="'.iconv("ISO-8859-1","UTF-8",$row['filename']).'"');<br /> header("Cache-Control: public");<br /> header("Content-Type: video/divx");<br /> header("Accept-Ranges: bytes");</p> <p> $range = 0;<br /> $size2 = filesize(iconv("ISO-8859-1","UTF-8",$row['filename'])) - 1;<br /> header("Content-Range: bytes 0-$size2/".filesize(iconv("ISO-8859-1","UTF-8",$row['filename'])));<br /> header("Content-Length: ".$size2);</p> <p> //open the file<br /> $fp=fopen(iconv("ISO-8859-1","UTF-8",$row['filename']),"r");<br /> //seek to start of missing part<br /> fseek($fp,$range);<br /> //start buffered download<br /> while(!feof($fp))<br /> {<br /> //reset time limit for big files<br /> set_time_limit(0);<br /> print(fread($fp,8196));<br /> flush();<br /> }<br /> fclose($fp);<br /> exit(0);<br />