background video working well on firefox but not worked in Chrome can anyone tell me the problem I tried my best to solve this but failed every time.but some time automatically run on chrome and self-stoped.
This is the link to the website.
background video working well on firefox but not worked in Chrome can anyone tell me the problem I tried my best to solve this but failed every time.but some time automatically run on chrome and self-stoped.
This is the link to the website.
Add mute in JQuery for the video to play in Chrome
<!-- home banner video -->
<video id="video" poster="https://briolaundry.com/wp-content/uploads/2017/05/bg-main.jpg" autoplay loop>
<!--<source src=""> -->
<source src="https://briolaundry.com/wp-content/uploads/2017/05/Brio-HomePage-Hero-473358135.webm">
<source src="https://briolaundry.com/wp-content/uploads/2017/05/home-banner.ogv">
</video>
JQuery:
window.onload = function () {
var element = document.getElementById('video');
element.muted = "muted";
}