ReactJS: How do I stop a video in a slide when that slide is no longer active? #5856
Unanswered
jordanlambrecht
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to have a swiper gallery of different videos. Out of the box, all the videos keep on playing on top of each other as you swipe. I'd like to stop the current video when swiper moves on to the next slide. Any ideas?
Bonus points: I'd also like to update a useState to be the current title of the video. The videos are organized into an array and then mapped through.
Here's my current code:
Beta Was this translation helpful? Give feedback.
All reactions