how to control four audio on play/pause buttons

Can someone please help me...????????

I want to play / pause audios on button click. I made play and pause buttons.

But if 2nd audio is playing then i want that particular audio(2nd) get pause once i clicked pause button and vice versa. :confused:


Right now i am facing the problem-

I have three buttons on clicking each button i want to play seperate audio.and i have 1 global audio.

if i clicked 2nd button 2nd audio will play.and nw if i clicked pause button. then the 2nd audio wont get pause n again i press pause button i cn here 2 audio 1 global + 1 which is running....

Discussion (1)

Create a variable for each audio element and set it to on/off. Then you'll be able to create actions that condition on the state of said variables.

Discussions have been disabled for this post