cms icon indicating copy to clipboard operation
cms copied to clipboard

Update VideoPlayer2.tsx

Open Aryam2121 opened this issue 2 years ago • 0 comments

Tracks the current video index using the currentVideoIndex state variable. Accepts a list of videos as input (videoList) and uses currentVideoIndex to determine the current video. When a video ends, it checks whether there is a next video. If there is, it automatically plays the next video using handleVideoEnded. Adds a button that appears when there is a next video in the list. When clicked, it advances to the next video in the list. ////////////// I add a button for next video for enhancement for user go to next video issue #384

PR Fixes:

  • 1
  • 2

Resolves #[Issue Number if there]

Checklist before requesting a review

  • [ ] I have performed a self-review of my code
  • [ ] I assure there is no similar/duplicate pull request regarding same issue

I

Aryam2121 avatar Apr 12 '24 11:04 Aryam2121