Documentation :: PHP Functions :: flvstring
| flvstring - returns the code to embed an flv video. 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. This function is the same as flv, except to returns the code.
Description void flv (string $movie [, int $width [, int $height [, string fgcolor [, string bgcolor [, boolean $autoplay [, boolean $autoload [, boolean $autorewind [, int $volume [, boolean $loop [, boolean $mute [, boolean $muteonly [, string $clickurl [, string $clicktarget ]]]]]]]]]]]) Parameters movie - The path of the flv file to send to the player. May be relative or absolute. width - The desired width of the player. If not specified or set as -1, the function will use the width provided by the getflvsize function. 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 player. If not specified or set as -1, the function will use the height provided by the getflvsize function, plus 40px for the player’s controls. If used, width must be specified, and a value other than -1, otherwise, both values will be ignored. fgcolor - The foreground color of the player. Defaults to 0×13ABEC. bgcolor - The background color of the player. Defaults to 0×051615. autoplay - If set to true, the movie will begin playing as soon as it has started to load - otherwise it will require the play button to be pressed. Defaults to false. autoload - If set to true, the movie will load automatically - otherwise it will require the play button to be pressed. Setting this to false can save bandwidth and make pages with multiple videos run better. Defaults to true. autorewind - If set to true, the movie will return to the beginning after it has completed - otherwise it will stay on the last frame. Defaults to true. volume - The starting volume of the player. This can later be changed by the user, unless muteonly is set to true. Defaults to 70. loop - If set to true, the movie will restart after it has completed - otherwise it will stay on the last frame or go back to the beginning, depending on the value of autorewind. Defaults to false. mute - If set to true, the movie will start muted - otherwise it will start with volume equal to the value of volume. Defaults to false. muteonly - If set to true, the player will use the old style volume toggle - otherwise it will use the volume adjuster. Defaults to false. clickurl - If set, clicking the video will take you to this url. clicktarget - Used only if clickurl is specified, set to ‘_blank’ to open in a new window, ‘_self’ to open in the current frame or ‘_parent’ to open in the current window. Be aware that some popup blockers will prevent opening in a new window. Return Value A string containing the code to embed a flv file. |
|

February 4th, 2008 at 12:18 pm
How about a “buffer” setting?
March 16th, 2008 at 5:06 pm
Welcome, is very good this player, but to insert a logo png above the video?
March 16th, 2008 at 5:07 pm
End the fit the video in all screen?
July 5th, 2008 at 5:33 am
is it support RTMP streaming ?
July 8th, 2008 at 5:45 pm
boolean $autorewind & boolean $loop don’t seem to work properly when set to FALSE. Any suggestions?
August 2nd, 2008 at 4:15 am
what about watermarks, playlists, splash images…??
December 15th, 2008 at 10:36 pm
There seems to be a problem on the loop and autorewind. I’ve tried changing the settings in the code generator, but it doesn’t work.
May 12th, 2009 at 10:50 am
Hi,this is V Good player,would be nice for PHP newbies to get some more info as regards the functions.Ive got it working great but have no embed options as I cant find how to implement those functions(flvstring).Can anyone give an example of the syntax for that ? Just to get embed options for one video at a time.Thanks.
(NOT using the Firefox code generator tho)