简体   繁体   中英

How to add a poster image for video lightbox?

I have a question about poster in Lightbox v2.9.0 .i have image and video in my gallery that open in lightebox and I need to set the part of video as poster_ image .how can I do this? this is my jquery code for gallery:

<a href="/rest/file/content/test" data-type="video" data-toggle="lightbox" rel="lightvideo">    
<img class="img-responsive img-fluid"  src="/rest/file/content/test.mp4">
</a>

您可以使用下面提到的代码,它将为您提供帮助。

<a href="/rest/file/content/test.mp4" class="wplightbox" data-type="video" data-toggle="lightbox" data-html5videoposter="https://www.wonderplugin.com/wp-content/uploads/2014/03/gallery.jpg">Video Lightbox</a>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM