My error: The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page

I am trying to rotate my object in the scene, from desktop no error from mobile I get this : The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page.

Hi @Yani and welcome,

That’s not so much of an error, but a warning.

For security browsers require that a user executes a user input before any audio has started.

So if your game has music/sounds attempting to run, that warning will show up before any audio can play.

The most common way to solve that is to add a Start Game button in your game so players can click that first before doing anything else. After the button is pressed, you can start playing your audio without getting that warning.

2 Likes

Thanks now I try to see if that worked

1 Like