Help needed playing multiple sounds

Ok, here you go. I haven’t directly tested this on Safari, but it is a simpler version of code that has been tested on Safari and found to work.

https://anvil.works/build#clone:BCMO2OF5NBHEQS47=2L4RYZJA22VTZCOQF3ELVJHF

It’s a variation on the stackoverflow prescription. Instead of playing a short, silent sound to initialize the audio element (which might be better, depending), I just turn the volume to 0 and play it that way in response to a user click.

My Anvil code was initially adapted from this (and related posts), but that older sample app may no longer work due to the hardcoded audio url being broken.

1 Like