Page 1 of 1

error playing a sound when the page is opened...

Posted: Mon Jan 30, 2023 1:13 am
by skinkairewalker
when loading the page, I look in the console and I come across these messages below, and the sound does not play ...
as I am developing a game, it is necessary to start with a sound playing ...
Is it possible to use howler.js to solve this problem? https://howlerjs.com/

Code: Select all

->soundjs.min.js:18 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu
a._createAndPlayAudioNode @ soundjs.min.js:18
->soundjs.min.js:18 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu