Play audio continuous

Hi Guys,

I am using :

<audio width="400" controls="controls" preload="auto" id="bananasound1">
<source src="${resourcesFolderName}/Banana.ogg" type="audio/ogg"> <!-- Firefox and Chrome -->
<source src="${resourcesFolderName}/test.mp3" type="audio/mpeg"> <!-- Safari and iPhone -->

<!-- Download links outside of the audio tag -->
<p>Download Audio: <br><a href="${resourcesFolderName}/test.mp3">MP3 Format</a> | <a            href="${resourcesFolderName}/Banana.ogg">OGG Format</a></p>

I am trying to get the sound to play when there is page navigation.
On button click

var snd = hypeDocument.getElementById('bananasound');;	

I created a persistent symbol and set to show on all pages.

The audio stops on a page change.
I need the audio to play in the back ground without any user intervention ( ie hide the player)

Is this possible ?


Steve Warby

no javascript, just start sound on button play: (130,4 KB)

1 Like

Thanks for the help.

If I set the audio to play on scene load then goto scene 2 then go back to scene the audio starts again.

How do I set a flag that the audio has started so the audio don’t re-start?

load audio not on scene load, but on symbolLoad. (130,4 KB)



Sometimes things are simple…


Steve Warby

1 Like