How Do I Embed a Video in Squarespace Autoplay?

Watch/Read More

Last updated on September 28, 2022 @ 12:25 pm

There are multiple ways to autoplay a video on Squarespace. The most common and easiest method is to use an HTML5 video tag with the autoplay attribute. This can be done in two ways:

The first way is to add the autoplay attribute to the video tag itself. For example:

This will work on most modern browsers, including Safari, Chrome, and Firefox. However, it will not work on Internet Explorer 11 and below.

The second way is to use the JavaScript API. This can be done by adding the following code to your page:

This will work on all browsers, including Internet Explorer 11 and below. However, it requires that the page have a video element with an ID of “myVideo”.