diff options
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r-- | src/js/plyr.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js index 1dd3ecb9..0a804437 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -824,6 +824,19 @@ class Plyr { } /** + * Set the download URL + */ + set download(input) { + if (!is.url(input)) { + return; + } + + this.config.urls.download = input; + + controls.setDownloadUrl.call(this); + } + + /** * Set the poster image for a video * @param {String} input - the URL for the new poster image */ |