Integrating Brightcove Players with a Web CMS
Publishers can script or use a web-based content management system (CMS) to provide runtime values for Title , Lineup , or Player attributes in the Brightcove Player publishing code . Such CMS-generated values can dynamically control Title and Lineup selections for your Player, outside of the Brightcove Console .
To obtain a copy of the Brightcove Player publishing code from the Brightcove Console after creating a Player: Click the Players tab, select the player from the list on the left, and click the Get Publishing Code button at the bottom right. Then, select the appropriate tab ( JavaScript , etc.) and click Copy. View sample player publishing code.
For example, to provide an alternate title to a Player:
A CMS could contain multiple versions of the Player publishing code with a different videoId attribute (specifies the default video loaded into the Player) in a series of static
HTML
pages. Provide a link from an HTML page containing your Player to the CMS HTML page. The CMS returns an alternate videoId value to the Brightcove system, which runs the alternate Title in the Player. You could use a similar method to swap values for a Lineup (using the lineupId attribute) or even change the Player (playerId attribute).
For more information on the editable attributes of the Brightcove Player publishing code: See Editing the Player Publishing Code.
