Place a audio player and a web button on a form, you can control the audio player if the user has interacted with it but not before. Any way to get audio to play when a button is pressed? I don’t need it to be cached or super responsive.
If the Play method doesn’t work, it’s probable that the user has disallowed audio starting automatically.
The trick is that some things require that they happen in the same event loop as the user action. With Xojo, the event has to go all the way to the server and come back in a later event loop.
Look at this method. The “Try it” precisely plays a sound when a button is pressed.