Documentation :: PHP Functions :: embed
|
embed - embeds a swf file. This function requires AC_RunActiveContent.js and rac.js. If you use it, make sure you use the flvheader function in the head section of your html document.
Description void embed (string $swf [, int $width [, int $height [, string $flashvars='']]]) Parameters swf - The path of the swf file to embed. May be relative or absolute. width - The desired width of the swf. If not specified or set as -1, the function will use the width provided by the PHP function getimagesize. If used, height must also be specified, and a value other than -1, otherwise, both values will be ignored. height - The desired height of the swf. If not specified or set as -1, the function will use the height provided by the PHP function getimagesize. If used, width must be specified, and a value other than -1, otherwise, both values will be ignored. flashvars - A string of variables to be used in the swf file. You can read more about them here. |
|

February 18th, 2008 at 1:02 pm
Is there a way to use the control buttons (play, pause, volume…) , but loading an external SWF instead a FLV? Thank you!
June 6th, 2008 at 6:16 am
Was looking for OS flv player and landed here.
Surely good stuff, easy to use but I reckon there is a lot of space when it comes to the looks.
any way, good work, keep developing…
September 23rd, 2008 at 3:31 am
Hi there, this player look great, great programing! Just having a few problems using it for swf’s, any chance someone can post a php embed swf example??
September 3rd, 2009 at 8:24 pm
FANTASTIC PLAYER !