'Play() can only be initiated by a user gesture' workaround
Janning⭐ That happened when I tried to use play() without any event handlers. I wanted the music to play automatically, but now, it only plays when the user clicks the "up/down/--->/<---" labels. I guess it's no longer a big deal.
Janning⭐ works on PC but not on Android. I've learned that Google only allows play() on Android when it's used along with DOM events.
If you're talking about the background music in this code: https://code.sololearn.com/Wis4OmrSYmM9/?ref=app I can only tell you that I can't reproduce the error you're referring to. It works fine on my device.
https://code.sololearn.com/WlFK9rl4z9tu/?ref=app Check this game
Not sure if this will help you out: https://www.w3schools.com/jsref/prop_audio_autoplay.asp