How to mute a video autoplay in html?

How to mute a video autoplay in html?

1 Like

Get access to the video element:

const video = document.getElementById('your-video-element-id')
video.muted = true;

You can do this when in window.onload event handler to do it when the page loads.