-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using VTT file for thumbnails #12
Comments
For those that don't want to download the file, here it is:
|
is it possible to use them for current plugin? |
Hi @PooriaFarhad VTT's are not currently supported but sprite sheets are. To use your sprite sheet you would do this: var numThumbs = 20;
var thumbWidth = 120;
var thumbHeight = 68;
var numColumns = 10;
var timeInterval = 5; // TODO change this to your value
var thumbsConfig = ClapprThumbnailsPlugin.buildSpriteConfig("http://vedas.ir/thumbnails.jpg", numThumbs, thumbWidth, thumbHeight, numColumns, timeInterval);
var player = new Clappr.Player({
source: "http://your.video/here.mp4",
plugins: {
core: [ClapprThumbnailsPlugin]
},
scrubThumbnails: {
backdropHeight: 64,
spotlightHeight: 84,
thumbs: thumbsConfig
}
}); |
are you going to add it? |
hmmm? |
Sorry I'm really busy at the moment. It sounds like nice feature and possible at the moment if you parse the file yourself to generate the config from. This looks like it should be able to parse a vtt on the common browsers: https://github.com/mozilla/vtt.js |
It could be great to use VTT file as source of thumbnails.
VTT sample file:
http://vedas.ir/thumbnails.vtt
and also a better choice could be sprite sheet:
http://vedas.ir/thumbnails-sheet.vtt
http://vedas.ir/thumbnails.jpg
Hmmm?
Thanks
The text was updated successfully, but these errors were encountered: