Skip to content

Commit

Permalink
Added an API to trigger player controls
Browse files Browse the repository at this point in the history
Useful if you want to pause, play or autoplay on DOM ready.
Gives total control to the user.
  • Loading branch information
julianxhokaxhiu committed Mar 26, 2013
1 parent 93b5db8 commit 2150af3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion js/bigvideo.js
Expand Up @@ -307,6 +307,11 @@
BigVideo.getPlayer = function() {
return player;
};

// Expose BigVideoJS player actions (like 'play', 'pause' and so on)
BigVideo.triggerPlayer = function(action){
playControl(action);
};
};

})(jQuery);
})(jQuery);

0 comments on commit 2150af3

Please sign in to comment.