0
votes

I am creating a slider with images that when someone clicks one slide, opens a modal window with another slider with videos.

What I would like to achieve is: on click -> play the video. So if the third slide of the images is clicked, open and play the video automatically.

Here is a fiddle with the example, but the play is not working...

1

1 Answers

1
votes
<iframe id="vimeo-player" src="https://player.vimeo.com/video/218392001?color=637df2?api=1&autoplay=1" width="640" height="360" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>

You have to add &autoplay=1&loop=1 after ?api=1 to iframe