I made a simple game and the audio only plays while I'm at the game in the browser. Is there something I am missing? Other triggerred sound -e.g. by clicking- is still ok.
The audio implementation requires JavaScript to work. Many browsers suspend JavaScript execution when the tab or window is not focused. This happens at the browser level and is beyond our control.
I made a simple game and the audio only plays while I'm at the game in the browser. Is there something I am missing? Other triggerred sound -e.g. by clicking- is still ok.