A video carousel component that displays a main video player and a list of video thumbnails. Supports video switching via Swiper and shows a preview thumbnail with a play icon before playback.

  • Integrates ReactPlayer for video playback.
  • Uses Swiper.js for horizontal thumbnail scrolling.
  • Displays video durations using a formatted helper.
  • Automatically updates the active video based on thumbnail selection.
<VideoGallery
videos={videoList}
currentIndex={0}
handleCurrentIndex={(i) => setIndex(i)}
handleDuration={(d) => setDuration(d)}
/>

Video list, active index, and handlers for index and duration.

A responsive video gallery with thumbnails and an embedded player.

Functions

default

Modules

<internal>