aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plugins/vimeo.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2019-04-12 19:00:17 +1000
committerSam Potts <sam@potts.es>2019-04-12 19:00:17 +1000
commitcdacae669786a76d821e828573f996b97ec4df9e (patch)
tree3a50125db0ecca93ae51647e12e85d8c9e73e38b /src/js/plugins/vimeo.js
parente281078441ad50c4b0b997b615b48fc0c254f173 (diff)
downloadplyr-cdacae669786a76d821e828573f996b97ec4df9e.tar.lz
plyr-cdacae669786a76d821e828573f996b97ec4df9e.tar.xz
plyr-cdacae669786a76d821e828573f996b97ec4df9e.zip
Set download URL via setter
Diffstat (limited to 'src/js/plugins/vimeo.js')
-rw-r--r--src/js/plugins/vimeo.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/js/plugins/vimeo.js b/src/js/plugins/vimeo.js
index 9d6c1665..e1e873fa 100644
--- a/src/js/plugins/vimeo.js
+++ b/src/js/plugins/vimeo.js
@@ -48,14 +48,14 @@ const vimeo = {
// Set intial ratio
setAspectRatio.call(this);
- // Load the API if not already
+ // Load the SDK if not already
if (!is.object(window.Vimeo)) {
loadScript(this.config.urls.vimeo.sdk)
.then(() => {
vimeo.ready.call(this);
})
.catch(error => {
- this.debug.warn('Vimeo API failed to load', error);
+ this.debug.warn('Vimeo SDK (player.js) failed to load', error);
});
} else {
vimeo.ready.call(this);
@@ -259,7 +259,7 @@ const vimeo = {
.getVideoUrl()
.then(value => {
currentSrc = value;
- controls.setDownloadLink.call(player);
+ controls.setDownloadUrl.call(player);
})
.catch(error => {
this.debug.warn(error);