Discord
Login
Community
DARK THEME

html5 export has no audio

I wanted to export my game to html5 just to test it out. The game runs perfectly, but the sound effects don't play for some reason, music plays fine though. tried this with some of my other games and the same things happened. Just wondering why this is happening.

Make a public code that you know doesn't work for you.

  • I'll clone him
  • will export
  • I'll check locally

If you use Firefox, the browser can turn off the sound for the page. To turn on the sound, click the icon of two lines with two circles in the address bar next to the padlock. And mark there that you allow the website to play sound.

https://microstudio.dev/i/ShmityBagel/audiotester9000/ I hacked this together in like 5 minutes, you just press the number keys and it plays sound. same thing happened, no sounds, only music when exported to html5

there is sound in Chrome. in Firefox - you need to allow sound.

Here's how to do it :

https://support.mozilla.org/en-US/kb/block-autoplay

See section "Site settings"

You can too :

  • try not to play sound for the first few seconds of the program running.
  • Or wait until the user presses a key or clicks the mouse.

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community