lightGallery – lightbox for HTML5 video formats – MP4, WebM, Ogg, etc

lightGallery supports all types of HTML5 video formats. Such as MP4, WebM, Ogg, etc.

To display html5 video create your video content using html5 video tag inside a hidden div. Then just add id or class name of the object(hidden div) which contains your html, inside the data-html attribute. data-src should not be provided when you use html5 videos . You can even provide video html directly inside data-html attribute. lightGallery will automatically check your content, and if it is id or class name of your hidden div content will be fetched from the div, and will be displayed as video. Otherwise direct content will be used for displaying the videos.

 It works!

Leave a Reply

Your email address will not be published. Required fields are marked *