Brightcove - pause or play using the API

Send Snippet To: Save this snippet to Code Collector Pro -- view all mihai2u's snippets
language: Other
license: Other

Code for Snippet:

                
brightcoveVideo = $('object[id*=brightcove]');
// get the ID from the object element
player = brightcove.api.getExperience( brightcoveVideo.attr('id') );
videoPlayer = player.getModule(brightcove.api.modules.APIModules.VIDEO_PLAYER);
videoPlayer.pause(true);
comments powered by Disqus

Info

Link to this snippet:


Download to Code Collector

To use the direct link to your snippet on CodeCollector.net either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 451
Date Added: 2013-11-26 10:51:13
Last Modified: 2014-06-10 06:59:33

Web Analytics