Restart Audio from Beginning when Returning to Layer

Oct 15, 2021

Four different layers for a slide. Each layer has its own audio file.

When learner clicks Layer 2 for example which triggers audio to begin playing, then leaves Layer 2 for Layer 4, then leaves Layer 4 in the middle of the audio to return to Layer 2, Layer 2 audio picks up where it left off. 

I want all audio on all four layers to start from the beginning after having been visited, not begin where the learner left off.

Do I need a variable and condition to accomplish that? If so, what variable and condition on variable would I create?

 

4 Replies
Monika Umba

Sometimes, the solution suggested above doesn't work. 

In these rare cases, try this solution:

What you need to do for the audio to restart when showing a layer again is to first stop that audio. If the audio isn't stopped, it will only resume when the layer is shown again.

The revisit option in the layer property only works if you move to another slide and then go back to the slide. The layer will then either reset to its initial state or resume its saved state upon revisiting the slide.

What you can do to restart the audio each time the layer is shown is to add a trigger to stop the media on that layer when the timeline starts. See this screenshot of the trigger in the attachment for reference

You just need to add that trigger on all the layers. 

Amanda Koop

Thank you Monika, this is just what I needed! 

I've added a trigger to stop the audio track on a slide layer when the slide layer's timeline starts, followed by a trigger to start the audio.

This ensures the slide layer's audio starts from the beginning each time the slide layer displays.