I'm using lightGallery to display a a collection of videos. In the docs, it says I can automatically load thumbnails from the video itself using some plugins. I've already included the required plugins with:
<script src="/js/lightgallery.js"></script>
<script src="/js/lg-thumbnail.min.js"></script>
<script src="/js/lg-fullscreen.min.js"></script>
<script src="/js/lg-video.min.js"></script>
<script src="/js/app.js"></script>
I'm trying to add my videos like so:
<div id="video-gallery">
<a href="https://vimeo.com/141457148"></a>
<a href="https://vimeo.com/104769168"></a>
</div>
and in my app.js
file, I have:
$(document).ready(function(){
$('#video-gallery').lightGallery({
loadVimeoThumbnail: true,
vimeoThumbSize:'thumbnail_medium',
});
})
Nothing is working. I'm not sure how to get images from the videos. I'm not sure what to put in the HTML as well, since nothing is showing without images.