Search code examples
csshtml5-videoautoplay

Chrome Autoplay Blocker stops my video


The autoplay background hero on my website recently stopped working due to Chrome's new autoplay blocker. There is no audio so I'm confused as to why...please assist.

www.homecareassistancemontreal.ca


Solution

  • It stopped, because Chrome doesn't want any sound-generating videos to start without user's direct agreement (e.g. starting it). If you want video to autoplay you must ensure it is muted.

    To do so you must add muted attribute to your <video>.

    <video muted>
      <source src="movie.mp4" type="video/mp4">
      Your browser does not support the video tag.
    </video>
    

    You can read more about this here.