GithubHelp home page GithubHelp logo

player-get-code-override's Introduction

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.

player-get-code-override's People

Contributors

bcdarius avatar

Watchers

Caitlin Kelly avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.