flash data integration:
Gang,
I've been unable to find any solution - or even a solid explanation - for this
problem anywhere.
I've built a custom FLV player that needs to rely on a PHP script to serve it
FLV files in order to control access to those files. My player uses the
FLVPlayback component.
My actionscript makes a call like this to the PHP script:
my_player.contentPath = "resource.php?id=12345"
I've also tried...
my_player.load("resource.php?id=12345");
The resource.php code in question looks something like this:
header('Content-Type: video/x-flv');
readfile("my_video.flv");
When tested, the FLVPlayback component simply won't accept the FLV served up
to it in this way. It WILL work if loading directly from the file system, so I
know my actionscript works. I can load just about any other type of file into
Flash this way, including JPG and SWF. FLV is the only format that doesn't
work.
I've added the video/x-flv MIME Type to all test servers I've tried this on,
so the server should recognize the file.
So here's the question: How can I get my PHP script to serve the FLV to my
FLVPlayback-based player?
Thanks,
J