GameDev problem: the music in our WebGL game on itch.io won't start until the user clicks in the window. Unity claims this is a browser limitation (no autoplay):
https://docs.unity3d.com/Manual/webgl-audio.html
... but the user has *already* clicked to load and launch the game, so it seems there should be no reason to require another click. I know I've seen WebGL games on itch that don't have this problem.
Does anyone know a workaround?
#GameDev #GameJam #unity #unity3d #itch #audio #sound #music #WebGL
@peterdrake I think the way the unity web stuff works is that first click is just javascript to load that app into the frame, so you'd actually need to click into the frame afterwards to give it focus. I know in the tiny bit of web stuff I've done I didn't do any javascript preloading so this wasn't an issue.
@raptor85 Do you know what the workaround is?