aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.js
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-12-15 10:43:36 +0700
committerGitHub <noreply@github.com>2018-12-15 10:43:36 +0700
commit5fdc0aae66850d94e17b5195605909e32bb25912 (patch)
treed142d2b1e992c76a658ba70a1c846ec224d98704 /src/js/plyr.js
parent2bbebd811b0772b7860f7f4cfbf941599995ab16 (diff)
parentd97257a5a93707fbbdc150226c9fbee8feb8aedb (diff)
downloadplyr-5fdc0aae66850d94e17b5195605909e32bb25912.tar.lz
plyr-5fdc0aae66850d94e17b5195605909e32bb25912.tar.xz
plyr-5fdc0aae66850d94e17b5195605909e32bb25912.zip
Merge pull request #1253 from jamesoflol/preview-thumbs
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 c8154429..872eb927 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);
+ }
}
// ---------------------------------------