This example demonstrates using individual video thumbnails instead of flat contactsheets where generating them is not possible. Loading times may vary.
<div class="flex w-full h-auto my-auto">
<video class="video-js vjs-default-skin vjs-fluid is-thumbnails" crossorigin="anonymous" controls="" id="thumbnails"></video>
</div>
<script type="text/javascript">
var player = videojs("thumbnails", {
"framesurl": "../../images/thumbnails/bbb/big_buck_bunny_400k-[index].jpeg",
"plugins": {
"controlspreview": {
"thumbnails": true
}
},
"sources": [
{
"src": "https://videos.electroteque.org/bitrate/big_buck_bunny_2000k.webm",
"type": "video/webm"
},
{
"src": "https://videos.electroteque.org/bitrate/big_buck_bunny_2000k.mp4",
"type": "video/mp4"
},
{
"src": "https://videos.electroteque.org/bitrate/big_buck_bunny_2000k.ogv",
"type": "video/ogg"
}
]
});
</script>