Website Building » Wix » How Do I Autoplay a Video on Wix?

How Do I Autoplay a Video on Wix?

Last updated on January 4, 2023 @ 12:08 pm

There are a couple different ways that you can autoplay a video on Wix. The first way is to use the “Autoplay” option that is available when you add a video element to your page.

Simply check the box next to “Autoplay” and your video will start playing automatically when the page loads. The second way to autoplay a video on Wix is to add a little bit of code to your site. This method is a bit more advanced, but it gives you more control over how and when your video plays.

GREAT NEWS:

Exciting update! We've collaborated with Wix to offer WBI users with a free plan for all website creation needs - Explore the details here.

To autoplay a video using code, you’ll first need to add the video element to your page. Then, add the following code to the bottom of your page:


<script>
$w.onReady(function ()
{$w("#video1").play();});
</script>

Replace “video1” with the ID of your video element. That’s all there is to it!

Your video will now play automatically when the page loads.

How Do I Autoplay a Video on Wix?

There are a couple different ways that you can autoplay a video on Wix.

To autoplay a video using code, you’ll first need to add the video element to your page. Then, add the following code to the bottom of your page:

PRO TIP: WARNING:

If you are not careful, autoplay video on Wix can be a major drain on your computer’s resources. Make sure you have a fast internet connection and plenty of RAM before attempting to autoplay video on Wix.


<script>
$w.onReady(function () {
$w("#video1").play(); });
</script>

Replace “video1” with the ID of your video element. That’s all there is to it! Your video will now play automatically when the page loads.

Kathy McFarland

Kathy McFarland

Devops woman in trade, tech explorer and problem navigator.