Variables-Audio files - how to stop one when another is triggered?

Aug 29, 2013

Hi -

I have several audio files on the main layer of my slide - and when the user clicks each button, the audio triggered to that button will play. I'm wondering though - if someone wants to listen to the next one, how do I stop the current one without both audio files playing over each other?  I'm sure it has to do with variables but I can't figure out how to do that just yet....

Thanks!

29 Replies
Rebecca Fleisch Cordeiro

Hi Jordyn,

I actually think you could do this without variables and just adding a bunch of "stop playing this (or these) media when the user clicks the button to play ThAT media" triggers (at least it worked in a quick trial I made just now).

But it might be easier to simply put your audio files on different layers. The buttons on the main layer can show those layers when Learners click. If they don't want to listen to the whole thing, they can close a layer, which brings them back to the main layer, where they can click a different button.

Would that work for you? Please shout out with any comments or questions.

Pat Kyle

Hi, this is a follow on question rather than a reply.  I have a similar problem - I have been puting my sound files onto the layers they go with, but sometimes I don't want to 'hide other layers' so if user clicks another hotspot before the last has finished playing then I they hear both at once - is it better practice to put the audio files on the main page and use a tigger to start them on clicking the relevant hotspot and then another trigger (how?) to stop them when the learner clicks another hotspot? Thanks in advance.

Jordyn Matusevich

Thank you - I will do the stop media when user clicks any of the other buttons. Putting them on a different layer wont work if there isn't anything on the layer, right? Sometimes in the course I do this and have text and a lightbox-type of layer but sometimes I just want them to click the button and not see anything new. 

It's a long process, but it will work - thanks!

Rebecca Fleisch Cordeiro

Hi All,

Pat, for your situation, where you want Learners to be able to see other layers AND listen to various audio, but stop one piece of audio while they listen to the other, yes, you could place all the audio on the base layer and use the "stop THIS media when THAT media is playing" idea.

So for each hotspot you would add triggers to:

  • show the associated layer
  • player the associated audio
  • stop the OTHER 2 audio files

Here's a screen shot of what the trigger panel might look like if you had 3 audio files associated with 3 layers:

I just threw this together quickly with some random audio I had, so it's not worth uploading. But if this isn't clear and you'd like more detail, perhaps you could upload a slide and the community could "mess with it" to give you a working example. So, please shout out!

Also, others may have different solutions.

Rebecca Fleisch Cordeiro

Jordyn Moss said:

Thank you - I will do the stop media when user clicks any of the other buttons. Putting them on a different layer wont work if there isn't anything on the layer, right? Sometimes in the course I do this and have text and a lightbox-type of layer but sometimes I just want them to click the button and not see anything new. 

It's a long process, but it will work - thanks!


Jordyn, it totally WILL work even if there's nothing on the layers, and I think it would be a lot less work. Again, I just made a quick test file with some random audio, so I really don't want to upload it (you wouldn't want me to either )

Here's a screen shot of a slide with my example and an explanation inserted on the screen shot

If that's not working for you, or if you have any other questions, please shout out...or upload an example for the community.

Jerrie Paniri

HI everyone,

I was thrilled to find this discussion, but I cannot get the desired result in a similar design.

The page is set up in a basic Q & A format:   Question boxes(4-7 questions per screen),  answer box, button 

User action: click any Ask button to hear thequestion, hear the answer, and see the answer text. Note: there are two audio files -  one  for each question and another for the answer

Problem: Stop all audio when user clicks anAsk button. The client wants to let users click any button in random order, as many times as they want.

I’ve tried the set up ideas suggested here (using stop mediatriggers and layers) with limited success. Audios still play simultaneously when you click another Ask button.  At this point I’d settle for disabling the other Askbuttons while one is selected.

Any ideas or suggestions out there?  (the attached doc is an explanation of the problem for a colleague)

Sarah Watson

I am a new user and I have a question about screen recordings with audio button. The user can click the audio button to hear narration if they would like but if my screen recording "clicks" somewhere on the slide, the audio stops.  Is there a way to separate the audio functions from the clicking? Or...is it that my audio is longer than the slide time?

Michael Hinze
Denise Pazur

Thanks Michael. I actually wanted "Layer 1 audio" to play when hotspot on Layer 1 is clicked (i.e. the first bullet point), and not when the footer hotspot is clicked. 

 

I probably still don't quite get it. What you described would require to click a More link twice, first to display the layer and then start the audio. The second click to me seems unnecessary. have a look at the attached new version and see if that's closer to what you wanted.

Empathos Resources

Thanks Leslie. I'm excited to be a part of the community.

*Denise M. Pazur, BA*
Vice President of Strategic Partnerships

529 Ontario Ave., Sheboygan, WI 53081
Office: 920-457-4033
Cell: 920-207-8747

*www.empathosresources.com*
*dpazur@empathosresources.com *

Empathos is a veteran-owned, minority-owned, woman-owned small business.

marina r

Hi Everyone!

I am having some trouble with a basic on/off audio trigger using variables.  I have set up all the variables (I think), but it's not working.  Please see file attached.

Background: I created a true/false variable for the fire alarm in the picture.  I have (normal, hover, selected) states on the fire alarm.  Triggers are set to play the audio when the variable changes.  Triggers are also set to change the variable based on the state of the alarm.

My intention: When you click the fire alarm, it changes to a selected state and starts playing the audio file of an alarm sounding.  When you click the fire alarm again, and change the state back to normal, the audio should stop.

My problem: The audio is not stopping with the state change.  The audio is not stopping at all.  

If possible, please let  me know which mistake I am making, I would really appreciate it!

Thank you,

Marina

Wendy Farmer

Hi Marina

My intention: When you click the fire alarm, it changes to a selected state and starts playing the audio file of an alarm sounding.  When you click the fire alarm again, and change the state back to normal, the audio should stop.

see updated file.

I removed the triggers you had using the variable and states and set up the following triggers on Picture11 (fire alarm)

marina r

Hi!  I'm back again, and was hoping I could ask one more question!

I have created a slide where the learner must dress their mentor in the proper gear (please see attached).  The mentor goes through and asks for the gear one at a time, and explains the need for the gear in the process.  When the learner hovers over and clicks the gear, it appears on the mentor.  I am trying to figure out a way to stop the mentor from being dressed if the wrong gear is selected.  For example, if the mentor is handed a whistle when she asked for the vest, I don't want the mentor to accept the whistle and continue on with her dialogue.  I want her to say, "that's" not my vest" and prevent the learner from opening the layer with the incorrect piece of equipment.  

I am not sure exactly how to set this up because it requires conditions, but I don't know how to connect the ability to open a slide layer with the need for it to be the correct piece of gear.

Thank you,

Marina

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