0 votes

I have a few audiostreamplayers that play background music and sfx.
They work on desktop, but not in browser for some reason.

Godot version 3.4.5
in Engine by (16 points)

1 Answer

0 votes

What sound file format are you using and what web browser are you viewing Godot on?

Not all browsers support all types of sound. For instance, Chrome supports most formats but for example, Safari and IE (RIP) support AAC but not Ogg while Firefox and Opera support Ogg but not AAC. Godot Desktop will always play this because it already has drivers for Ogg and MP3 (and your cpu probably does too) and other formats but i think the broswer version is ultimately at the mercy of the limits of whatever internet browser is displaying it.

Try a different file format? Ogg Vorbis is usually a winner and quite low on the memory space without a huge loss of quality. You can download Audacity, a free converter to change the file types quite quickly.

by (548 points)
edited by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.