Skip to content

Instantly share code, notes, and snippets.

@mikemurray
Created June 28, 2013 20:46
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mikemurray/5887976 to your computer and use it in GitHub Desktop.
Vimeo API events
<script src="/_js/vendor/froogaloop2.min.js"></script>
var iframe = $('#player__1'), // This is the video player iFrame embed
player = $f(iframe[0]);
// Vimeo video starts playing
player.addEvent('play', function(){
});
// Vimeo video is paused
player.addEvent('pause', function(){
});
// Vimeo video reaches the end of playback
player.addEvent('finish', function(){
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment