Closed hymm closed 1 year ago
Ooh, good find!
What happens if we add this when deploying on itch.io?
What happens if we add this when deploying on itch.io?
I think it should be fine. I deployed to itch.io in the past with a similar workaround I took from https://github.com/NiklasEi/bevy_game_template.
I also use this workaround on itch.
It is only necessary when using the Automatically start on page load
option (without that option the game is only loaded after the page is interacted with) but should be harmless otherwise.
Should the template include this workaround for AudioContexts?
https://developer.chrome.com/blog/web-audio-autoplay/#moving-forward
I think itch.io does something for this already, but it's fixes some issues with sounds not playing when running on other web pages.