Question by
tannerschwab2000 · Aug 05, 2019 at 01:12 AM ·
erroraudiowebgl
Why does my audio work fine in the editor but doesn't play in the WebGL build?
I'm making a game in Unity 2018.2.21f1. When I create the WebGL build everything works like it does in the editor except no audio plays. Whenever audio should play I get the error "Decode error" followed by "Uncaught (in promise) DOMException". Any idea what could cause this?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612210042im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
"Unable to decode audio data" in webgl build 0 Answers
Failed to Build for WebGL 1 Answer
Build WEBGL Error in Unity 2019.3.3f1 1 Answer
Brief sharp noise burts / clipping in soundtrack after Webgl build 0 Answers
WebGL audio pitch weirdness 2 Answers