diff options
author | Sam Potts <sam@potts.es> | 2017-11-09 16:06:49 +1100 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2017-11-09 16:06:49 +1100 |
commit | f9602acf611900d9f9ee27e62e3883fa9394bdee (patch) | |
tree | d74db72cf3e47a49ee9fd00129c03faf71272880 /src/js/plugins/vimeo.js | |
parent | 86a5724bdb84a1dc9e503f5907ad80caf395bf0a (diff) | |
download | plyr-f9602acf611900d9f9ee27e62e3883fa9394bdee.tar.lz plyr-f9602acf611900d9f9ee27e62e3883fa9394bdee.tar.xz plyr-f9602acf611900d9f9ee27e62e3883fa9394bdee.zip |
Callback for loadScript
Diffstat (limited to 'src/js/plugins/vimeo.js')
-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 1ad26bf4..9da872f7 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]; |