I tried with something like this:
[code=php]
header(‘Content-Type: video/x-flv’);
readfile(‘path/to/file.flv’);
But it didn’t work.
This is exactly what I want: in order to hide to the users the real location of the FLV file, and to build a SEF URL, I use .htaccess, so that the file which is being actually pushed into the flash video player (let’s call it videoplayer.swf) through FlashVars, whenever it’s requested, .htaccess redirects the request to a PHP file with GET variables parsed by Apache’s mod_rewrite from the RewriteRule.
e.g.:
[CODE]RewriteRule ^video/([a-ZA-Z0-9_]+)/t([0-9]+)/v([0-9]+).flv video.php?filetype=$2&id=$3 [L]
and this one php file (called video.php in the example) outputs the requested file as direct FLV data.
I’m not sure if this is possible because I think you could do this with the flv player (the swf file, called videoplayer.swf in the example), but the flv video file is requested from within Flash afterwards (not with the http protocol I think).
Any suggestion to this? It my apporach is not possible, is there another way?