p5.js-sound
p5.js-sound copied to clipboard
p5.sound not working over network
I made a custom server for an online game I'm making that serves the html page and connects websockets. I use p5.sound.js for sound effects, but when I tried to use it, everything stopped working, like setup() and draw() weren't called, and when I removed sound effects it worked perfectly. Funniest thing is, it only happens when I connect over network, when I use localhost or 127.0.0.1 on the same machine it doesn't happen. I don't know if this os a problem of mine or this but I'm putting this here just in case.
More info: I tried getting the file from the CDN and also tried downloading it and hosting it on a github.io site. Nothing worked.