[英]How to add a poster image for video lightbox?
我在Lightbox v2.9.0中有關於海報的問題。我在lightebox中打開了畫廊中的圖像和視頻,我需要將視頻的一部分設置為poster_ image,我該怎么做? 這是我的畫廊的jQuery代碼:
<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>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.