embed

embed - embeds an 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.

2 Responses to “embed”

  1. Nacho says:

    Is there a way to use the control buttons (play, pause, volume…) , but loading an external SWF instead a FLV? Thank you!

  2. Daksh says:

    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…

Leave a Reply

Copyright Jambo Media, LLC 2008