Sample Brightcove Player Publishing Code
When you create a new Player , the Brightcove Console automatically generates code that allows you to embed a Brightcove Player into any web page or pop-up window or to embed it into a Flash-based website, movie, or application.
The following JavaScript sample code is typical of what the Brightcove service generates:
<!-- Start of Brightcove Player -->
<SCRIPT SRC="http://admin.brightcove.com/js/experience_util.js"
LANGUAGE="JavaScript"></SCRIPT>
<SCRIPT>
var config = new Array();
/*
* feel free to edit these configurations
* to modify the player experience
*/
config["videoId"] = null;
//the default video loaded into the player
config["videoRef"] = null;
//the default video loaded into the player by ref id specified in console
config["lineupId"] = null;
//the default lineup loaded into the player
config["playerTag"] = null;
//player tag used for identifying this page in brightcove reporting
config["autoplay"] = false;
//tells the player to start playing video on load
config["preloadBackColor"] = "#8d9395";
//background color while loading the player
/* do not edit these config items */
config["playerId"] = 117234;
config["width"] = 993;
config["height"] = 529;
createExperience(config);
</SCRIPT>
<!-- End of Brightcove Player ->
