|
FCPlayer How-tos |
IndexHow to add FCPlayer to a subdirectory within your site.
|

|
The installation instructions found at the beginning of the this guide assume that you will be adding FCPlayer to your site's web root. However, it is possible to install the FCPlayer folder to any subdirectory withing your site by modifying your installation in the following two ways:
First, the script that you embed in your web pages needs to point to the location of the FCPlayer Folder. So, for instance, instead of:
<script type='text/javascript' src='/FCPlayer/js/import.config.js'></script>
<script type='text/javascript' src='/FCPlayer/js/import.jquery.js'></script>
<script type='text/javascript' src='/FCPlayer/js/import.fcplayer.js'></script>
<script type='text/javascript' src='/FCPlayer/js/install.fcplayer.window.js'></script>
You would have something like:
<script type='text/javascript' src='http://www.mysite.com/myPortal/FCPlayer/js/import.config.js'></script>
<script type='text/javascript' src='http://www.mysite.com/myPortal/FCPlayer/js/import.jquery.js'></script>
<script type='text/javascript' src='http://www.mysite.com/myPortal/FCPlayer/js/import.fcplayer.js'></script>
<script type='text/javascript' src='http://www.mysite.com/myPortal/FCPlayer/js/install.fcplayer.window.js'></script>
Second, you will need to set the master path of your player. To do this, open FCplayer/js/import.config.js with a text editor.
Where it says:
var fcp_path = "/FCPlayer/";
Change this to point to your player's path. Following the example path above, we have:
var fcp_path = "http://www.mysite.com/myPortal/FCPlayer/";
|
|
|
| |