Support » Developing with WordPress » How to handle “Uncaught (in promise) DOMException: play() failed because the use

  • Resolved Urmil Patel

    (@urmilwp)


    How to handle “Uncaught (in promise) DOMException: play() failed because the user didn’t interact with the document first.” on Desktop with Chrome 64 and HTML5 Video tag.

Viewing 2 replies - 1 through 2 (of 2 total)
  • In modern versions of Chrome, you can’t have videos autoplay with sound enabled by default.

    You need to add the muted property to your HTML5 <video> tag:

    muted="muted"

    Hello Cleancoded,

    Working fine, thanks for quick support.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to handle “Uncaught (in promise) DOMException: play() failed because the use’ is closed to new replies.