Multiple audio files on one screen controlled by buttons

Feb 06, 2014

I've got 20 numbered buttons on one slide, each one set to play a different audio clip. (There will not be 20 in the final version, but this screen allows them to listen to the clips and choose which ones they want.)

As they click a button, I need whatever audio is currently playing to stop before the selection starts. I can use a trigger to StopMedia....but would need 19 StopMedia triggers times 20 buttons!?! Am I missing something? Is there a simpler way??

7 Replies
Jill McNair

Hi Carrie,

I think that the easiest way to do this is to put each sound on a separate layer.  Then all you need is a trigger on the base layer to show that layer when the user clicks the button.  The new audio will automatically play, and if an audio file is playing on another layer, it will stop because the default property of each layer is to hide other slide layers.  

Based on default settings, the music will restart if the a user clicks a button again.  If you would rather that the audio resumes, you can change the default setting on each layer by clicking the small gear icon on the right side of the layer in the Layers panel and changing the "Revisits" option at the bottom to "Resume saved state"

Hope this helps!

Jill

Carrie Eaton

Jill, this is working well except for one more issue. They want the seekbar on so learners can pause/rewind the screen and hence the audio. But the layer is playing and I try to use the seekbar, it doesn't control the audio that's playing on the layer. If I'm trying to  pause or stop the audio, that's not too bad, but if I use the slider, the audio on the base layer starts playing over the audio on the layer....!?!?

I know I can control what displays from the base on the layers, but I don't see the controls (seekbar) there. Is there any way to control the display of the controls per screen or per layer? Or any better way of handling this?

Carrie Eaton

Ok, so it wasn't quite that simple....once I turn off clicking on the base layer, I can no longer click the 20 buttons to get to each layer. (Each button calls a layer where the audio is.)

I copied all of the buttons to each layer and that works and didn't take all that much time, but it's a lot of buttons. Again, I wonder if I'm missing a simpler solution?

Jill McNair

Hi Carrie,

Here is what I would try:

1. Make sure the seek bar is turned on in the Player (Click Player, the check the box that says seekbar).  You may already have this in place.

2. Go to the gear icon for each layer again and select "Yes" under the "Allow seeking" drop down.  This will display a unique seekbar on each layer.  Here is a screenshot.

Also - just to be sure you know, you do not have to add any buttons to the layers or turn off clicking on the base layer

Hope that will simplify this for you!

Jill

This discussion is closed. You can start a new discussion or contact Articulate Support.