Once you've created a Brightcove player, you can use the Publishing module to generate the code you need to publish the player. The Publishing module gives you a choice of several publishing approaches:
- JavaScript. Use JavaScript to insert the player into an HTML web page or pop-up window. The JavaScript embed code is the preferred approach for publishing a Brightcove player.
- ActionScript. Use ActionScript to insert the player into a Flash movie or Flex application.
- HTML to embed. Use this HTML to embed the player into an HTML web page or pop-up window. Choose HTML as the publishing code for places that disallow JavaScript, such as social networking sites like MySpace or other services such as blogs. Note: If you use HTML embed code, you lose the ability to control where this content is displayed and you also lose some reporting capability.
- Publishing URL. Use this URL to link to the player from any web site, email, blog, etc. This option is also handy for launching a player in a pop-up window. Note that the Publishing URL option is not available if you have selected Host on your URL in the Global settings tab for this player.
To get the publishing code for a player:
- In the Publishing module, select the player.
- On the Action Toolbar, click Get Code.

- Select a publishing code option to open the Get Code dialog and get the correct code snippet. You can select one of JavaScript, ActionScript, HTML to Embed, or Player URL. When the Get Code dialog opens, it displays the right code for the publishing option you selected.
- Click Copy Code or Copy Link to copy the code to your clipboard.
- Paste the code from your clipboard into its destination file.
You can also use the Quick Video Publishing feature in the Media module to get the publishing code for a single-video player.
Modifying the publishing code
In most cases, you can just get the player publishing code from the Publishing module and paste it into your web page or other destination file. However, in some cases, you'll want to configure the player by modifying parameters in the publishing code. Two examples are enabling FMS dynamic streaming and embedding a player on an HTTPS web page. For information about how to use configuration parameters to modify a player, see Player Configuration Parameters.