From fac134dd955fe1a264a68897cd49d06a5afd9750 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Fri, 28 Sep 2018 00:42:42 +1000 Subject: Added download button --- src/js/plugins/vimeo.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/js/plugins') diff --git a/src/js/plugins/vimeo.js b/src/js/plugins/vimeo.js index 4cbdb5c4..3c3dee20 100644 --- a/src/js/plugins/vimeo.js +++ b/src/js/plugins/vimeo.js @@ -71,7 +71,7 @@ const vimeo = { // For Vimeo we have an extra 300% height
to hide the standard controls and UI setAspectRatio(input) { const [x, y] = (is.string(input) ? input : this.config.ratio).split(':'); - const padding = 100 / x * y; + const padding = (100 / x) * y; this.elements.wrapper.style.paddingBottom = `${padding}%`; if (this.supported.ui) { @@ -278,6 +278,7 @@ const vimeo = { .getVideoUrl() .then(value => { currentSrc = value; + controls.setDownloadLink.call(player); }) .catch(error => { this.debug.warn(error); -- cgit v1.2.3