Created
June 28, 2013 20:46
-
-
Save mikemurray/5887976 to your computer and use it in GitHub Desktop.
Vimeo API events
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="/_js/vendor/froogaloop2.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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