Title pretty much says it all. I have a video which automatically starts playing when arriving on the page.
In the HTML code I have put muted=\"muted\". And here comes
I'm not entirely sure as to why the muted
attribute is malfunctioning when defined within the video
tag. However, this is what you can do :
Firstly, remove the muted="muted"
attribute from the video tag. Keep it simply as :
Now, define a function that on loading of the page, mutes the video.
window.onload = function () {
var element = document.getElementById('video');
element.muted = "muted";
}
I have verified this, and it works.