When combining the Video and Autoplay plugin, slide to next when video ends

Author: vansanteCreated Mar 10, 2026Updated Mar 10, 2026

Summary

When I have a video gallery with the Autoplay plugin, and I open the gallery and press the Autoplay button, I expect:

  • The first video to play completely
  • Then the next slide appears
  • Then that video plays completely
  • Then the next slide appears

and so on and on.

But currently, when the autoplay button is pressed, all videos only appear for the configured amount of time (configured in the auto play settings).

Basic example

The current behaviour can be observed in the demo:

https://www.lightgalleryjs.com/demos/video-gallery/

Motivation

It makes it possible to watch an entire gallery of videos without manual intervention. Without this change, you only the first couple of seconds of each video, which is not what you want for most usecases.

Source: sachinchoolur/lightGallery