close

[Fixed] Uncaught (in promise) DOMException: play() failed because the user didn’t interact with the document first

Today We are Going To Solve Uncaught (in promise) DOMException: play() failed because the user didn’t interact with the document first in javascript. Here we will Discuss All Possible Solutions and How this error Occurs So let’s get started with this Article.

How to Fix Uncaught (in promise) DOMException: play() failed because the user didn’t interact with the document first Error?

  1. How to Fix Uncaught (in promise) DOMException: play() failed because the user didn’t interact with the document first Error?

    To Fix Uncaught (in promise) DOMException: play() failed because the user didn’t interact with the document first Error Mute the video.Just mute the video. It will solve your error. <video loop muted autoplay id="videomain"> <source src="videoname.mp4" type="video/mp4"> </video> Use the above code to mute the video. This will help you.

  2. Uncaught (in promise) DOMException: play() failed because the user didn’t interact with the document first

    To Fix Uncaught (in promise) DOMException: play() failed because the user didn’t interact with the document first Error just Follow these steps. To remove this error just follow these steps. first of all open chrome://settings/content/sound and then make setting No user gesture isrequired and after it relaunch the chrome. It will easily solve your error. I hope this will help you.

Solution 1 : Mute the video

Just mute the video. It will solve your error.

<video loop muted autoplay id="videomain">
  <source src="videoname.mp4" type="video/mp4">
</video>

Use the above code to mute the video. This will help you.

Solution 2 : Follow these steps

To remove this error just follow these steps.

first of all open chrome://settings/content/sound and then make setting No user gesture is required and after it relaunch the chrome. It will easily solve your error. I hope this will help you.

Solution 3 : Follow these steps

If you are getting this error in android phone then try this solution to remove your error.

In your phone if Data Saver mode is enabled, autoplay is disabled in Media settings.This will help you.

Conclusion

So these were all possible solutions to this error. I hope your error has been solved by this article. In the comments, tell us which solution worked? If you liked our article, please share it on your social media and comment on your suggestions. Thank you.

Also Read This Solutions

Leave a Comment