Audio playing not working

I have an audio file in Assets. I’m trying to access it as follows:

const ping = new Audio('https://cdn.glitch.global/4b8b377b-7e08-4bd2-bfdf-6e4f54102829/ping.mp3');

However, Glitch just goes into an infinite load after that.
How can I fix this?

You can just play the audio using ping.play()

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.