Autoplay a video after a set amount of time

Hey Everyone,

I am trying to get a video to play 10 seconds after someone opens my site.

I have 2 videos that I would like to autoplay on my site. The first is a 10 second animation video that will play immediately when someone opens my site and then disappear. However, once the first video is over, I want to have the second video start playing automatically and play on loop. Does anyone know how to do this with Velo? Any help would be greatly appreciated!

Hello! If the video is always 10 seconds you could perhaps use setTimeout and then play() from the video API

From what I am reading, looped videos are not available but you can vote for the feature request and to potentially try to fake a loop you could try using setInterval to trigger the video to play again. I’m honestly not sure how well this would work in practice though bc I don’t think it would have the seamless feel of a loop.

This is very helpful thank you!