Report this

What is the reason for this report?

No audio playing on webpage?

Posted on July 22, 2018

So, I tried to deploy a LibGDX game to my web server, and the audio doesn’t work. (LibGDX == Java code compiled to JS with GWT and the audio code is from LibGDX, so I have no idea what it’s doing but it should work).

I’d ask on the LibGDX forums (in fact I have) but the thing is, if I test my game in a local web server (using “python -m http.server 8000”), the sound works fine. If I take the same files and copy them to my DigitalOcean server, the game runs fine, but none of the sounds play.

Is there some DO/Apache/somethingelse setting I need to change to get audio to work?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.