Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

GMS HTML5 module game may not play audio at start.

A topic by NicolaasJKotze created Jun 22, 2021 Views: 406 Replies: 1
Viewing posts 1 to 2
Submitted

If anyone knows a workaround other than to quickly click on the game area during load, I think a lot of people will appreciate it. :)

So, I have been investigating why my music does not play in HTML5 but does in Desktop Test. This forced me to disable the code blocks regarding music for the submission.

During HTML debug you might see an error in the debug log "audio_play_sound failed. WebAudio Context suspended - user must interact with the page before audio can be played."

Found a YoYo Games forum topic about this.
https://forum.yoyogames.com/index.php?threads/audio_play_sound-failed-webaudio-c...

Tested on OperaGX LVL2 (core: 76...), Chrome 91, FireFox 89, IE11 (yea, lots of performance issues too).

Submitted(+1)

Place a "click window to start game"? Like they did.