Large sound files (like background music) don't play when the HTML build loads, however, smaller files like sound effects will play.
I have found that if I put a touch listener on an object (button) and use that to start the music, it works. I have wait a few seconds before pressing the button because, I presume, the audio is still loading. If I press the button before the sound is loaded, nothing happens.
My original thought was that if I used
it would increase the load time but allow the soundtrack to play. I didn't make a difference. Neither one worked.
My second thought was to use a delay to trigger the sound but this didn't work with delays triggered by timers or transition-based delays.
I'm hoping one of you will have my third thought or maybe you first or second thought solved this already. I'm open to ideas - thanks!