Stop Audio when revisiting BUT keep Base layer to "resume saved state"

Mar 12, 2019

Hi, I have encountered a problem with jumping back to a "main" slide from "subslides" and audio on the "main" slide.

"main slide" with 6 buttons that each lead to another slide. Buttons change state when clicked (done). Intro audio is on the "main"slide. This audio shall stop, as soon as ANY of the buttons is clicked. Which normally works, BUT: The problem is, that I need this "main" slide to be set on "resume saved state" to grant that status of buttons remains as "done" once visited. But that also saves where the audio was when learner jumped to a slide via a button. Any ideas????

8 Replies
David Schwartz

Hi Margit,

My inclination here would be to create your own states for the buttons (copy the visited state to a new state like "Complete"), then create T/F variables for each button. Trigger the given variable to true when a button is clicked and before going to the subslide. On the main slide, set up triggers for each button at the start of the slide's timeline that set the state of each button to "Complete" if the associated variable is true. Then you will not need to resume the saved state of the main slide.

 

Margit Schindler

Oh, no, my issue is not that I can't keep the state done, my problem is, that the audio either starts anew each time one comes back to the main slide when I choose to start at initial point when you come back to it, or resumes at where it stoped when I choose the "resume saved state" option. The thing is, I want people to be able to stop the audio on the main slide for good, once they chose not to listen to it but rather start clicking the single buttons. The buttons lead to other slides and from there you always come back to the main slide to be able to choose the next one. BUT I want people to be able to choose the buttons in the range they want, not necessarily one after the other (That would be easier).

Crystal Horn

Hello Margit. You're actually experiencing a bug we identified where returning to a slide in its saved state causes audio to resume even if you've used a stop audio trigger. I'll tag this discussion so we can update you with any changes.

In the meantime, the current workaround is to trigger the audio to play rather than have it associated with the slide's timeline. Does that work for your slide design?

Debra Mascott

Hi:  I am not 100% sure I understand the problem nor the solution, but I think I have a similar issue.  I would like the introductory audio on the base layer play entirely. I want the buttons to display, but not be activated. Is that possible?  

The users can click on the buttons after the entire introductory audio runs and then they can click on the buttons. 

Thank you.

Ashley Terwilliger-Pollard

Hi Debra,

It definitely sounds like you're trying to set up something a bit different. For your buttons, you could use the built-in disabled state as the initial state and set those all to normal when the base layer media completes (using a trigger). The built-in states will behave according to the definitions here.

Will the buttons trigger more audio, another layer, or something else? 

Debra Mascott

Wonderful!  Disabled state for the buttons would be terrific while the "introductory audio" plays on the base layer.  However, the buttons once enabled do trigger another layer.  So, do I create two triggers (1) turn the button to normal (2) show layer (3) play media on each layer?  Is there another way to do this? 

Many thanks in advance.

Crystal Horn

Hi Debra! Your method sounds like it should work. These are the triggers you might use:

  • Change state of Button to Normal when media completes (audio). You'll need one of these for each button.
  • Show layer when user clicks Button. One for each button, as well.

If the audio is on the individual layer, you won't need a trigger to play it. It will play automatically. You may want to have a look at your layer properties, though. You'll probably need to pause the timeline of the base layer and hide other layers from the layer properties on each layer.

If you can share one of these slides here, the community can give you more specific help!

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