blueimp / Gallery

blueimp Gallery is a touch-enabled, responsive and customizable image & video gallery, carousel and lightbox, optimized for both mobile and desktop web browsers. It features swipe, mouse and keyboard navigation, transition effects, slideshow functionality, fullscreen support and on-demand content loading.
https://blueimp.github.io/Gallery/
Other
3.75k stars 984 forks source link

Is it possible to use videos without a poster? #245

Closed jesse-r-s-hines closed 4 years ago

jesse-r-s-hines commented 4 years ago

I am trying to create a video gallery, but I don't have poster images available for each video. Is it there a way in lightbox mode to make the gallery either use the first video frame as the poster, or not show the poster at all and just directly show the video player?

blueimp commented 4 years ago

Thanks for your suggestion @JesseHines0.

The video Gallery now displays the active video element if no poster is provided and also if the video is paused.

Please note that by default, videos are not preloaded, so will only show an empty screen, however you can change the preloading behavior: https://github.com/blueimp/Gallery#video-preloading

jesse-r-s-hines commented 4 years ago

@blueimp That will work perfectly. Thanks!