The Lightbox feature displays your videos but also your images in a floating player. The Lightbox-opening trigger is a simple <a>
element, and you can have multiple <a>
that open the same video or image in a lightbox.
While it is possible to integrate SublimeVideo with other lightbox libraries (you’ll need to use our JavaScript API for this), we highly recommend using SublimeVideo’s Lightbox feature to get the easiest and best possible lightbox integration for your videos.
<video id="video1" style="display:none" width="640" height="360" poster="video-poster.jpg" preload="none">
<source src="http://yoursite.com/video.mp4" />
<source src="http://yoursite.com/video.webm" />
</video>
class
to the <video>
.<video>
element needs to be initially hidden (with style="display:none"
in the code above).<a class="sublime" href="#video1">Play the video with the ID "video1"</a>
href
value must corresponds to the id
of the <video>
element created in Step 1.class
to the <a>
.Please see the Lightbox settings page.