I have a question. Can anyone explain to me why I have to click in the main browser window to hear the sound?
Below is the code which apparently works very well, apart from this small detail. What did I forget? Thanks in advance.
The ability for sounds to play has to be triggered by a user action on the page. This is incredibly annoying, but it's a limitation of the web everywhere. Part of me gets why, but it's still annoying when you're making an application that uses a lot of sounds.
Quin wrote: Mon Apr 08, 2024 2:37 pm
The ability for sounds to play has to be triggered by a user action on the page. This is incredibly annoying, but it's a limitation of the web everywhere. Part of me gets why, but it's still annoying when you're making an application that uses a lot of sounds.
All right. I don't understand why, but it is not an error from me. I am reassured. Thank you.
Quin wrote: Mon Apr 08, 2024 3:30 pm
You're most certainly not the only one that doesn't understand this. We can run any javascript we want on page load... unless it plays sounds?
Yes. Perhaps, one day, I will understand? But for now, I don't even ask myself the question.