Okazari / Rythm.js

A javascript library that makes your page dance.
https://okazari.github.io/Rythm.js/
GNU General Public License v3.0
3.93k stars 250 forks source link

Getting past "AudioContext not allowed to start" issue on Chrome. #128

Closed sgebr01 closed 2 years ago

sgebr01 commented 2 years ago

Hi! As I've been trying to get Rythm.js to work on my site, most times there will be an error in the console that says the AudioContext is not allowed to start. I know this is because Google and many other browsers put in measures to prevent audio from auto playing. How could I get past this? How could I assign Rythm.js to play on the click of a button? Trying it myself led to a Maximum Call Stack Exceeded Error so I've been having issues with that.