Answer the question
In order to leave comments, you need to log in
Youtube API + video carousel?
Such a problem: I have a carousel from an iframe YouTube video, I need to make sure that when scrolling, when the area with the video becomes visible, 2 videos (which are in the center of the carousel) automatically start in silent mode, when the user scrolls further, they stop. I can’t start solving the problem in any way, because I don’t quite understand how to bind my 5-6 iframes to the Youtube API, I think I can handle the rest, please tell me how to do this moment
Answer the question
In order to leave comments, you need to log in
By means of YouTube itself, it is unlikely to succeed.
as an option: you
take an iframe with autoplay set and img for example with a preview.
here you work with them. those. change them at the right time.
don't forget to completely clear the iframe or remove the src. otherwise autoplay will not be updated when substituting.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question