This project provides a Flash plugin for overriding the embed code in the 'Get Code' player menu. The plugin will automatically replace the default HTML embed code with an iframe, so that the embedded player is a smart player that will work in both HTML5 and Flash environments. About
1. Download the latest GetCodeOverride.swf from Deploymenthere 2. Upload the SWF file to a server and make a note of the URL e.g. http://example.com/swf/GetCodeOverride.swf (make sure the swf is publicly accessible without any authentication or restriction); 3. Place a crossdomain.xml file on the server's web root directory where SWF file resides to allow the Brightcove player to communicate to the SWF. 4. Add "?viralPlayerID=[default viral player ID]&viralPlayerWidth=[default viral player width]&viralPlayerHeight=[default viral player height]" to URL by replacing [default viral player ID] value with the default viral player ID for your account, [default viral player width] with viral player's width and [default viral player height] with viral player's height e.g. http://example.com/swf/GetCodeOverride.swf?viralPlayerID=15482486786464&viralPlayerWidth=480&viralPlayerHeight=270. Alternatively you can add these parameters to the player publishing code as below:
<pre><param name="viralPlayerID" value="[default viral player ID]" /> <param name="viralPlayerWidth" value="[default viral player width]" /> <param name="viralPlayerHeight" value="[default viral player height]" /></pre>
These parameters can be added via page URL where player published is e.g. http://mydomain.com/section/category/page?viralPlayerID=12314849203482&viralPlayerWidth=480&viralPlayerHeight=270
- Log in to your Brightcove account and navigate to the Publishing Module
- Double-click on the player and go to "Plug-ins" tab and enter previously noted URL for GetCodeOverride.swf (Make sure that the URL matches the SWF's location and have viralPlayerID parameter with viral player ID value in the URL).
- Finally save changes
Alternatively the plugin can be added as a Module to the BEML template.