How to play audio to all users vs local?

I am trying to figure out how to play audio to either all users or some users online my website. Currently, I have a javascript that plays the audio when the button is clicked, however it only plays locally, meaning the person who clicked it can only hear it.

Does anyone know a good way to make it play globally? Thanks!


Did you check Howler.js plugin ?


I tried it however couldn’t get the audio to be played throughout the whole website to all users. I could only hear it on my end, or the end of the button being pressed.