Skip to main content

Posts

Showing posts from March, 2013
Brightcove video event handling is way to capture the video events and perform some operations on occurrence of that event.


Note: Brightcove API services does not work on local environment (for example: direct browsing of page) so you have to host the website on IIS.




Here are the steps to include video on page and capture the events and perform some action on event occurrence.

Open any HTML page and write the mentioned javascript code in head section.

Javascript Section
<scripttype="text/javascript"> var player; var modVP; var modExp; var modCon;    function myTemplateLoaded(experienceID) {                          player = brightcove.api.getExperience(experienceID);              modVP = player.getModule(brightcove.api.modules.APIModules.VIDEO_PLAYER);              modExp = player.getModule(brightcove.api.modules.APIModules.EXPERIENCE);              modCon = player.getModule(brightcove.api.modules.APIModules.CONTENT);              modExp.addEventListener(brightcove.api.events.Exper…