Closed Dimitargabres closed 1 year ago
Indeed player.spriteThumbnails
is used when the player is already set up, as in most of the examples in the README.
However, you can configure the plugin directly
plugins
object on the player level orThe playlist example shows both of the above.
In your case:
const player = (playerRef.current = videojs(videoElement, {
// various config options
plugins: { // configure plugins
spriteThumbnails: {
interval: 2,
url: '/assets/preview_01.jpg',
width: 160,
height: 90
}
}
));
I will try to clarify this a bit more in the docs when I find time.
Hello
Thanks for your post.
Actually, i tried it as well, but it is also not working.
Hello Thank you.
But even from the link, i can't see thumb
In which browser and on what platform is this happening?
I test with google chrome, Microsoft Edge
I don't have a windows machine to test right now, sorry. Definitely works in Chrome, Firefox, Safari etc. for me.
Do you get any errors? Is the thumbnail file loaded?
What i can see from console log is only this.
Can you show me screenshot of how thumbnail shows on your side please?
PS: Also for me, i am seeing
VIDEOJS: player: spritehumbnails: WARN: connection.downlink < 2
Is that one can be reason?
Yes, your connection seems rather slow, see the downlink
option.
Set it to 0
, at least for testing.
Wow, working, when i set downlink: 0
Thank you very much.
I love this package!!!
Works
downlink: 0,
Hi team
I can't sure that this is issue or not, but i need help, so that raise this ticket.
Currently i am using videojs on react and i want to use sprite-thumbnail. What i have done is
But on timeline, thumbnail is not showing, just time is displayed.
When i check player on console,
player.spriteThumbnails
is a function not object.Did i something wrong?
Kindly update me.
Regard.