You can mute a audio file then play another so muted = false means it plays and muted true means it doesn't.
sym.$("audiol").muted = false;
sym.$("audioh").muted = true;
Play an audio file.
Set a position where the audio play should play from
sym.$("audio "). currentTime = 0;
I hope this helps
Thank you for the response. Do you know if there is a command that will pause or mute all the audio files instead of each individual file?
You could add all the audio files to a class for example "audio" and then stop the audio files like
sym.$(".audio").muted = true;
I think anyway, I've not tested that.+
I was hoping setting a class would work but it didn't for me. Possibly, I didn't create the class properly and I used paused. Pleasssse take a look and let me know if I should try something differently.
Placed this class in the source.html file:
<audio class="allaudio" src="media/audio1.mp3" type="audio/mpeg" />
<audio class="allaudio" src="media/audio2.mp3" type="audio/mpeg" />
<audio class="allaudio" src="media/audio3.mp3" type="audio/mpeg" />
<audio class="allaudio" src="media/audio4.mp3" type="audio/mpeg" />
<audio class="allaudio" src="media/audio5.mp3" type="audio/mpeg" />
On the event:
No I would recommend just muting all the audio files at once if the class didn't work.
The class didn't work, so I will test muting all the files at once. Do you think if I placing around 40 mute commands in each symbol that it will slow down the performance over mobile devices? A class would be ideal in this situation.
I tried placing a class on each element and it's not working responding to the class. It's only responding to EA play commands. I think my class syntax is incorrect. Unfortunately, I don 't see any resources online that can help me with this.
so you've added the class through Adobe edge like I shown you in the above post?
if you have then show me how your calling it and I'll have a look.
I would remove them from the HTML and just use Edge. Does it work after doing that?