Permalink
Browse files

Added an API to trigger player controls

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 2150af3e7354ad76b6938fb5171e0ef1fbc7e81f
Showing with 6 additions and 1 deletion.
  1. +6 −1 js/bigvideo.js
View
@@ -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.