Skip to content

Commit 50a468e

Browse files
committed
should be working but isnt
1 parent 995bc9f commit 50a468e

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

views/mediaPlayerPartials/plyrAndAutoplayFunctionalityJs.pug

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,24 @@ script.
110110
controls: ['play-large', 'play', 'progress', 'current-time', 'duration', 'rewind', 'fast-forward', 'mute', 'volume', 'settings', 'pip', 'fullscreen', 'captions'],
111111
settings: ['speed', 'captions', 'quality', 'loop'],
112112
fullscreen: {iosNative: true},
113-
seekTime
113+
seekTime,
114+
previewThumbnails: {
115+
enabled: true,
116+
src: [`/uploads/#{upload.uploader.channelUrl}/#{upload.uniqueTag}_sprite.vtt`],
117+
},
114118
};
115119

120+
// TODO: add sprite
121+
// if (#{upload.hasPreviewSpriteThumbnail}) {
122+
//
123+
// let previewThumbnails = {
124+
// enabled: true,
125+
// src: ['/uploads/anthony/newVideoTrimmed.vtt'],
126+
// }
127+
//
128+
// plyr_options.previewThumbnails = previewThumbnails;
129+
// }
130+
116131
// Create the plyr instances - this defines players[0] as our primary player.
117132
var players = Plyr.setup("#media_player", plyr_options);
118133

0 commit comments

Comments
 (0)