user didn't interact with the document first
Clicking the document fixed the issue :)
Getting play() failed because the user didn't interact with the document first error when trying to play sound (javascript/html)
It´s because Google updated its Autoplay Policy, it is necessary for the user to make some interaction first with the window in which the sound will be played, for example a 'Start' button then you can play the sound. This happened because for many users it is annoying when a sound is played out of nowhere.
Related Topics
Why Was the Arguments.Callee.Caller Property Deprecated in JavaScript
Comparing Date Part Only Without Comparing Time in JavaScript
Jquery Load More Data on Scroll
How to Find Prime Numbers Between 0 - 100
Are Trailing Commas in Arrays and Objects Part of the Spec
Code Within D3.JSON() Callback Is Not Executed
What Is the Non-Jquery Equivalent of '$(Document).Ready()'
Prevent Scrolling of Parent Element When Inner Element Scroll Position Reaches Top/Bottom
Http Headers in Websockets Client API
Execute the Setinterval Function Without Delay the First Time
Issue in Returning Data Retrieved from Db Queries Called in the Loop
How to Check a Radio Button with Jquery
React/Jsx Dynamic Component Name