sachinchoolur / lightGallery

A customizable, modular, responsive, lightbox gallery plugin.
https://www.lightgalleryjs.com/
Other
6.47k stars 1.28k forks source link

Videos not playing! #1579

Closed dense-set closed 9 months ago

dense-set commented 9 months ago

Description

(The issue that I am facing is exactly the same as that in the description of #948. But there, it's resolved in the context of Rails and Webpack, and is not very helpful to me.)

Steps to reproduce

Here is the CodePen.

JS code that you use to initialize lightGallery.

(I also plugged in the justifiedGallery.)

$("#gallery")
  .justifiedGallery({})
  .on("jg.complete", () => {
    lightGallery(document.getElementById("gallery"), {
      plugins: [lgVideo]
    });
  });

Sample HTML markup

The same as described in the documentation.

lightGallery version - 2.7.2

Additional context

I have asked the question on SO also, but it's not attracted much attention...