Simple Vimeo API jQuery Plugin
An easy way to control Vimeo videos using standard jQuery event structure and methods.
You can check out the entire repo, or download the latest release below (production files are in the dist folder):
jQuery Vimeo API v0.10.3 (zip)
jQuery Vimeo API v0.10.3 (tar.gz)
You can also link directly to the file using MaxCDN.
Make sure to include this plugin’s .js file after jQuery library. Use the minified version in dist folder for best performance.
This plugin works with iframe Vimeo embeds only. You can target the iframe using any normal jQuery CSS conventions, but often it’s easier to put an id attribute on the iframe to target it specifically.
For multiple videos, it is recommended to include a query string to the end of the URL of your video with the variables api=1, and player_id=[unique_name] for each video, like so:
2016-05-05 v0.10.3 Major bug fix to events chain being called before iframe is loaded in some cases.
2016-04-09 v0.10.2 Created new vimeoLoad() method for dynamically loaded videos
2015-06-01 v0.10.1 Force https always. API calls don’t seem to work over http
2015-04-14 v0.10.0 Support for multiple videos automatically.
2015-03-09 v0.9.3 Fixed playProgress and loadProgress events due to capitalization issue.
2015-02-20 v0.9.2 Fixed Bower package, so it only installs js files.
2015-02-20 v0.9.1 Added package controls for bower, npm, and Grunt tasks.
2015-02-06 v0.9.0 Fixed window.location.protocol, which was missing a colon.
2014-12-25 v0.8.9 Fixed issue with Firefox, which didn’t recognize hasOwnProperty. Used for…in instead.