tjenkinson / clappr-thumbnails-plugin

A plugin for clappr which will display thumbnails when hovering over the scrub bar. Thumbnails can either be individual images or a sprite sheet.
https://tjenkinson.github.io/clappr-thumbnails-plugin/demo/
MIT License
44 stars 14 forks source link

Number of thumbs when using sprite #116

Open inside83 opened 3 years ago

inside83 commented 3 years ago

Hi,

I'm using sprite generated by this plugin (https://github.com/flavioribeiro/video-thumbnail-generator) and I'm using helper method var thumbs = ClapprThumbnailsPlugin.buildSpriteConfig(spriteSheetUrl, numThumbs, thumbWidth, thumbHeight, numColumns, timeInterval); to generate thumbs property.

Problem is, if I define numThumbs at 100 (for example), not every sprite has 100 images in it. Sometimes it's more, sometimes it's less, depending on the length of the video so previews end up either being too short or too long at the seekbar.

Is there a way around it?