cemsung
unread,Jun 17, 2009, 11:06:27 AM6/17/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SWFObject
Hi,
I am trying to stream a .swf from apache via php:
header("Cache-Control: public, max-age=31536000");
header("X-Content-Type-Options: nosniff");
header("Content-Type: application/x-shockwave-flash");
header('Content-Length: '. $length);
$buffer = 4096;
while(!feof($handle))
{
$data = fgets($handle,$buffer);
echo $data;
}
fclose($handle);
exit;
and I have the following swfobject code
var flashvars = {};
var params = {
play: "false",
loop: "false",
menu: "true"
};
var attributes = {};
swfobject.embedSWF("index.php?media=part_1.swf",
"divpart1", "800", "600", "9.0.0", false, flashvars, params,
attributes);
___________________
when I load the html the page starts to download the whole video (211
mb) ... how can I stop that and only have it stream? what am I doing
wrong or not doing? Thanks for you help in advance!