Open frank780117 opened 6 years ago
I also have this issue with Chrome. Strangely sometimes the sounds will play and sometimes they wont.
Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. https://goo.gl/xX8pDD
Same issue as above ^
It is because of the chrome's browser setting.
Indeed. It's because of this: https://developers.google.com/web/updates/2017/09/autoplay-policy-changes
You need to listen for a user interaction before you set the playStatus
to Sound.status.PLAYING
Please help to resolve this issue, I have the same warning
soundmanager2.js:1989 Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. https://goo.gl/xX8pDD
any update here guys?
This turned out to be exactly what the error says - the user needs to interact with the page before you can autoplay sounds. I now have a small banner at the top of the page asking for autoplay permission, with a button for the user to click. Works great.
hi, sometimes not play sound, can you add mute or other property then I can use.
https://stackoverflow.com/questions/49930680/how-to-handle-uncaught-in-promise-domexception-play-failed-because-the-use