aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.js
diff options
context:
space:
mode:
authorJames <james@hale.com.au>2018-11-12 15:55:26 +1100
committerJames <james@hale.com.au>2018-11-12 15:55:26 +1100
commit8f27611911d9e6b4c6012e1af44b6c14cf6eaffb (patch)
tree2e99daa1e7812e289906d9730e2765933a109435 /src/js/plyr.js
parent7d484c6e09267020f06d3dd6dbd0a434ea3cbc9b (diff)
downloadplyr-8f27611911d9e6b4c6012e1af44b6c14cf6eaffb.tar.lz
plyr-8f27611911d9e6b4c6012e1af44b6c14cf6eaffb.tar.xz
plyr-8f27611911d9e6b4c6012e1af44b6c14cf6eaffb.zip
Preview seek/scrubbing thumbnails
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r--src/js/plyr.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index daebdadc..49fc7c5a 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -15,6 +15,7 @@ import Fullscreen from './fullscreen';
import Listeners from './listeners';
import media from './media';
import Ads from './plugins/ads';
+import PreviewThumbnails from './plugins/previewThumbnails';
import source from './source';
import Storage from './storage';
import support from './support';
@@ -306,6 +307,11 @@ class Plyr {
// Seek time will be recorded (in listeners.js) so we can prevent hiding controls for a few seconds after seek
this.lastSeekTime = 0;
+
+ // Setup preview thumbnails if enabled
+ if (this.config.previewThumbnails.enabled) {
+ this.previewThumbnails = new PreviewThumbnails(this);
+ }
}
// ---------------------------------------