|
FCPlayer How-tos |
IndexHow to set the global configuration for your player.
|

|
To set the configuration for your player, open the file FCPlayer/config/FCPlayerConfig.js with a text editor. Usually, the default settings of this file will suffice; however, there may be a few things you will want to do to customize your player. We will show you some of these below.
Note: In the configuration file, each line must end with a comma. Comments are preceded by two forward slashes ie. //This is a comment!
Setting your player's default width and height.
Set the width and height as follows, the values are in pixels.
//Player dimensions
width:800,
height:432,
Setting your player's default video folder.
The default video folder is preset to the videos subfolder contained within FCPlayer:
//Base video path (must end in a backslash)
videoRoot: (window["fcp_path"] || "/FCPlayer/") + "videos/",
However, you can change it to anything you like. You can specify an absolute path, or a path relative to your sites root directory, as follows.
//Base video path (must end in a backslash)
videoRoot:"http://www.mysite.com/myvideofolder/myvideos/",
Setting your player's window/frame color.
The styles parameter allows you to change you players window, frame and title color. You can enter any acceptable web color.
//Player styles
styles:{
windowColor:"gray",
useFrame:true, //For the embedded mode
frameColor:"gray", //For the embedded mode
titleColor:"#ffffff",
DONOTTOUCHTHIS:0
},
Setting the text of your player
You may wish to change the default titlebar or tooltip text. This is fairly straightforward, as the sections containing text are clearly labled. Below we have reproduced the section which contains the default text for the titlebar.
//Title text
title:"FCPlayer",
loadingMsg:" Media Loading...Please Wait",
bufferMsg:" Buffering ",
F11Msg:"Press F11 for full screen",
A list of configuration variables.
|
|
|
| |