Here is what I have so far
PHP Code:
$query = "SELECT * FROM video";
$result = mysql_query($query) or die('Error, query failed');
$row = mysql_fetch_array( $result );
header("Content-Disposition: attachment; filename=$row[videoname]");
header("Content-length: $row[size]");
header("Content-type: $row[type]");
The row - videoname is the actual file name so i.e. thisismyvideo.wmv
The size row is how big the file size is. The Type stores the type of file the video is so video/x-ms-wmv.
Then finaly there is another row (not mentioned above) called 'content' that is the actual BLOB.
Just confused where I should go next. Should I include the row 'content' (the blob) in the above somewhere?
Because what I need to do is get it so I can stream it via this:
HTML Code:
<OBJECT id="VIDEO" width="320" height="240"
style="position:absolute; left:0;top:0;"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject">
<PARAM NAME="URL" VALUE=">URL HERE">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="True">
<PARAM NAME="AutoStart" VALUE="True">
<PARAM name="uiMode" value="none">
<PARAM name="PlayCount" value="9999">
</OBJECT
|