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.

< Back

 
PHP Functions
Installation
FAQ

4 Responses to “Documentation :: PHP Functions :: 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…

  3. Fordaus says:

    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??

  4. Sri Bala says:

    FANTASTIC PLAYER !

Leave a Reply

Copyright Jambo Media, LLC 2009

Powered by WordPress - Created by Tommaso Baldovino