
Insert the following code into the box to add video
<script type="text/javascript" src="/flvplayer/ufo.js"></script>
<p id="video1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
var FO = { movie:"/flvplayer/flvplayer.swf",width:"425",height:"350",majorversion:"7",build:"0",bgcolor:"#FFFFFF",
flashvars:"file=/files/ChristmasLightsGoneWild.flv&showdigits=true&autostart=true" };
UFO.create(FO,"video1");
</script>
black = edit if more than 1 video
red = must change video source
blue = edit if required. see FLASHVARS below
The flashvars are settings you can insert into your HTML code to control both behavior and appearance of the flvplayer. In the installation example above, you can see how to insert these flashvars: just insert them into the "flashvars" attribute of your embed code, and stack them with the "&" symbol. Here is a list of all flashvars, their default values are bold:
| Name | Values | Explanation |
| file | URL (video.flv) | The location of the file to play. It can be a single FLV file, an RTMP stream * or an RSS or XSPF playlist. For more info about playlists, see below. |
| autostart | true,false | Set this to "true" if you want the m3player to automatically start playing. |
| shuffle | true,false | If you have a playlist, the flvplayer will shuffle through the songs. Set this to "false" if ou don't want that. |
| repeat | true,false | Set this to true to make the flvplayer automatically repeat playing when a song is completed. |
| backcolor | COLOR (0xFFFFFF) | Backgroundcolor of the flvplayer. In the "extras" folder of this download there's a colorpicker script with which you can pick a hexadecimal color. |
| frontcolor | COLOR (0x000000) | Texts / buttons color of the flvplayer. In the "extras" folder of this download there's a colorpicker script with which you pick a right hexadecimal color. |
| lightcolor | COLOR (0x000000) | Rollover/ active color of the flvplayer. In the "extras" folder of this download there's a colorpicker script with which you can pick a hexadecimal color. |
| displayheight | NUMBER (height-20px) | Height of the display. |
| linkfromdisplay | true, false | If you defined links in your playlist and set this to true, a click on the display will jump to the link. Else a click on the display will play/pause the MP3. |
| overstretch | true,false | Set this to false if you don't want the display image/video to overstretch to fill the entire display. |
| showdigits | true,false | Set this to true to show the digits for % loaded, elapsed and remaining time in the flvplayer. |
| showfsbutton | true,false | Set this to true to show the fullscreen button. |
| fullscreenpage | URL (fullscreen.html) | HTML page to jump to for fullscreen. This HTML page has the flvplayer included at 100% screensize. |
| fsreturnpage | URL (flvplayer.html) | HTML page to return to from fullscreen. This usually is the page you currently include the player into. Both the "fsreturnpage" and "file" are saved as a flashcookie before jumping to fullscreen. |
| fullscreenmode | true,false | Set this to true to tell the player it is in fullscreen mode (it's done in the fullscreen.html). If so, it shows the controls 50% transparent and links the fullscreen button to the fsreturnpage. |
| volume | NUMBER (80) | Startup volume of the flvplayer. |
| bufferlength | NUMBER (5) | Number of seconds a video should be buffered ahead before the player starts it. Set this smaller for fast connections or short videos. Set this bigger for slow connections. |
| autoscroll | true,false | Set this to true to let the playlist automatically scroll, based upon the mouse cursor. It defaults to false, at which you'll see a scrollbar. |
| thumbsinplaylist | true,false | Set this to true if you want to show small thumbnails of the cover images in the playlist. |
| callback | URL (undefined) | You can set the location of a server-side script here to track callback statistics. The flvplayer will send the url, title and id of any song that is either started or completed by the user. A small example of a statistics script can be found in the "extras" folder of this download. |
| streamscript | URL (undefined) | URL of an optional script to use for 'fake streaming' FLV files. The parameters 'file' and 'pos' are sent to the script. An example is 'stream.php' in the 'extras' folder, more info can be found here |
| enablejs | true, false | Set this to "true" to enable javascript interaction. An example of how to control the rotator with javascript can be found here at my website. The example uses the mediaplayer, but all controls are similar to the ones for the flvplayer. |
| width | NUMBER | Force the width of your movie if you have a messed-up display IE. Normally, just setting the width in your HTML will be sufficient. |
| height | NUMBER | Force the height of your movie if you have a messed-up display IE. Normally, just setting the height in your HTML will be sufficient. |