Navigation Menu

Skip to content

bcdarius/Player-Get-Code-Override

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

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.

Deployment

1. Download the latest GetCodeOverride.swf from here 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>&lt;param name="viralPlayerID" value="[default viral player ID]" /&gt;
&lt;param name="viralPlayerWidth" value="[default viral player width]" /&gt;
&lt;param name="viralPlayerHeight" value="[default viral player height]" /&gt;</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

  1. Log in to your Brightcove account and navigate to the Publishing Module
  2. 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).
  3. Finally save changes

Alternatively the plugin can be added as a Module to the BEML template.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published