Preview seek/scrubbing thumbnails

This commit is contained in:
James
2018-11-12 15:55:26 +11:00
parent 7d484c6e09
commit 8f27611911
5 changed files with 583 additions and 0 deletions

View File

@ -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);
}
}
// ---------------------------------------