aboutsummaryrefslogtreecommitdiffstats
path: root/dist/plyr.polyfilled.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2019-01-26 17:17:27 +1100
committerSam Potts <sam@potts.es>2019-01-26 17:17:27 +1100
commit8b57104f8396c4110f217c854099243d8d04ae20 (patch)
tree8c9d5c4f277f5facfb59cb5397646910c8ca9dc4 /dist/plyr.polyfilled.js
parentff066f0c2a7ecefa58fbeb13710fb2a13bc3990f (diff)
downloadplyr-8b57104f8396c4110f217c854099243d8d04ae20.tar.lz
plyr-8b57104f8396c4110f217c854099243d8d04ae20.tar.xz
plyr-8b57104f8396c4110f217c854099243d8d04ae20.zip
Docs for preview thumbs
Diffstat (limited to 'dist/plyr.polyfilled.js')
-rw-r--r--dist/plyr.polyfilled.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/dist/plyr.polyfilled.js b/dist/plyr.polyfilled.js
index 3a14da1b..6e7bbd34 100644
--- a/dist/plyr.polyfilled.js
+++ b/dist/plyr.polyfilled.js
@@ -6536,7 +6536,8 @@ typeof navigator === "object" && (function (global, factory) {
noCookie: false,
// Preview Thumbnails plugin
previewThumbnails: {
- enabled: false
+ enabled: false,
+ src: ''
}
};
@@ -9811,13 +9812,14 @@ typeof navigator === "object" && (function (global, factory) {
var _this2 = this;
return new Promise(function (resolve) {
- if (!_this2.player.config.previewThumbnails.src) {
+ var src = _this2.player.config.previewThumbnails.src;
+
+ if (is$1.empty(src)) {
throw new Error('Missing previewThumbnails.src config attribute');
- } // previewThumbnails.src can be string or list. If string, convert into single-element list
+ } // If string, convert into single-element list
- var src = _this2.player.config.previewThumbnails.src;
- var urls = is$1.string(src) ? [src] : src; // Loop through each src url. Download and process the VTT file, storing the resulting data in this.thumbnails
+ var urls = is$1.string(src) ? [src] : src; // Loop through each src URL. Download and process the VTT file, storing the resulting data in this.thumbnails
var promises = urls.map(function (u) {
return _this2.getThumbnail(u);