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

Just starting out? Need help? Post your questions and find answers here.
skinkairewalker
Posts: 120
Joined: Tue Jun 14, 2016 7:17 pm

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

Post 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