README.md in embeddable-0.0.6 vs README.md in embeddable-0.0.7

- old
+ new

@@ -37,9 +37,49 @@ post.video_on_youtube? # => true post.video_id # => 'bEvNRmPzq9s' ``` +### Brightcove +If you want to support brightcove, you'll need to add +your own brightcove player by overriding the brightcove partial. + +1. Create a partial in your project here: `app/views/embeddable/partials/_brightcove.html.erb` +2. Add your brightcove player code(see example below) +3. Remember to add the following parameters(included in the example below): `id`, `width`, `height` + +```html +<div class="BCLcontainingBlock"> + <div class="BCLvideoWrapper"> + <div style="display:none"></div> + <script type="text/javascript" src="https://sadmin.brightcove.com/js/BrightcoveExperiences.js"></script> + + <object id="brightcove-<%= id %>" class="BrightcoveExperience"> + <param name="secureConnections" value="true" /> + <param name="bgcolor" value="#FFFFFF" /> + <param name="width" value="<%= width %>" /> + <param name="height" value="<%= height %>" /> + <param name="playerID" value="Your player id" /> + <param name="playerKey" value="Your player key" /> + <param name="isVid" value="true" /> + <param name="isUI" value="true" /> + <param name="dynamicStreaming" value="true" /> + <param name="wmode" value="transparent" /> + + <param name="@videoPlayer" value="<%= id %>" /> + + <param name="includeAPI" value="true" /> + <param name="templateReadyHandler" value="onTemplateReady" /> + </object> + + <script type="text/javascript">brightcove.createExperiences();</script> + + </div> +</div> +``` + +If you used this example, you must remember to add your own `playerId` and `playerKey` + ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`)