ok this is what i have now:
flv files are located outside my webroot
the file path is '/home/username/movies/'
the code in stream.php is:
PHP Code:
$file = "/home/username/movies/" . $_GET["file"];
$fh = fopen($file, "rb") or exit("Could not open $file");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-store, must-revalidate");
header("Content-Type: video/x-flv");
header('Content-Length: ' . filesize($file));
while (!feof($fh))
{
print(fread($fh, 10000));
}
fclose($fh);
ok now if i do
www.mysite com/stream.php?file=test.flv
my browser will download the file only named stream.php
which is correct, its able to get the file. I dont know if there is a problem that it could be returning as a .php file and the player will not play it?
but if i try to play it in the flash player it just sits there with the flash logo going, like its trying to find the file.
the code for the player that i am loading is:
PHP Code:
<div id="player">
<embed id="mpl" width="320" height="260" flashvars="file=stream.php?file=p1.flv" allowfullscreen="false" quality="high" name="mpl" src="movieplayer/mediaplayer.swf" type="application/x-shockwave-flash"/>
</div>
and once again this is the jeroenwijering player.
that site seems to be down or i would be there too.