aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plugins
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-09-28 00:42:42 +1000
committerSam Potts <sam@potts.es>2018-09-28 00:42:42 +1000
commitfac134dd955fe1a264a68897cd49d06a5afd9750 (patch)
tree50bb1e10b0033d4d0c3ac68fb236a4412b17a5e1 /src/js/plugins
parent515ae32160c8317cfddff07362d9aa399452d05d (diff)
downloadplyr-fac134dd955fe1a264a68897cd49d06a5afd9750.tar.lz
plyr-fac134dd955fe1a264a68897cd49d06a5afd9750.tar.xz
plyr-fac134dd955fe1a264a68897cd49d06a5afd9750.zip
Added download button
Diffstat (limited to 'src/js/plugins')
-rw-r--r--src/js/plugins/vimeo.js3
1 files changed, 2 insertions, 1 deletions
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 <div> 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);