diff options
author | Sam Potts <me@sampotts.me> | 2017-11-09 19:41:12 +1100 |
---|---|---|
committer | Sam Potts <me@sampotts.me> | 2017-11-09 19:41:12 +1100 |
commit | fd97607e5512ab8aef5321c628a521d61a95b9e8 (patch) | |
tree | 8369e9fec11cd23abfbee163b764404a1d08afdc /src/js/plugins | |
parent | f878581c8fe8c3e525722762553cf085e67d990f (diff) | |
parent | f9602acf611900d9f9ee27e62e3883fa9394bdee (diff) | |
download | plyr-fd97607e5512ab8aef5321c628a521d61a95b9e8.tar.lz plyr-fd97607e5512ab8aef5321c628a521d61a95b9e8.tar.xz plyr-fd97607e5512ab8aef5321c628a521d61a95b9e8.zip |
Merge branch 'develop' of https://github.com/Selz/plyr into develop
# Conflicts:
# dist/plyr.js
# dist/plyr.js.map
Diffstat (limited to 'src/js/plugins')
-rw-r--r-- | src/js/plugins/vimeo.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/js/plugins/vimeo.js b/src/js/plugins/vimeo.js index 8ae57dd9..4bca80e3 100644 --- a/src/js/plugins/vimeo.js +++ b/src/js/plugins/vimeo.js @@ -25,6 +25,7 @@ const vimeo = { // Load the API if not already if (!utils.is.object(window.Vimeo)) { utils.loadScript(this.config.urls.vimeo.api); + // Wait for load const vimeoTimer = window.setInterval(() => { if (utils.is.object(window.Vimeo)) { @@ -38,6 +39,7 @@ const vimeo = { }, // Set aspect ratio + // For Vimeo we have an extra 300% height <div> to hide the standard controls and UI setAspectRatio(input) { const ratio = utils.is.string(input) ? input.split(':') : this.config.ratio.split(':'); const padding = 100 / ratio[0] * ratio[1]; |