Forum Discussion

KathRed's avatar
KathRed
Community Member
5 years ago

Pause and restart audio with the same button

Is it possible to do the following?

1. Audio starts at the start of the timeline

2. Learner can pause the audio by clicking a button

3. Learner can also start the audio from the point it stopped by clicking the same button

This seems so simple but I've tried states and variables and neither gets the result I want. Thanks for any help!

5 Replies

  • Try this

    The button on the left controls the slide timeline, which controls everything on the slide.

    The button on the right controls only the audio. Since there is a play media trigger, it needs one additional trigger, to start the audio.

    Use the one that best suits your other needs, but I have no idea what might happen in the long term if you try to use them both. :)

  • KathRed's avatar
    KathRed
    Community Member

    Thank you so much.

    I'd thought 'false' was the same as 'not equal to true' in my states and triggers, but that's apparently not true when it comes to Storyline (and probably some other areas of life too).

  • stefanocraba's avatar
    stefanocraba
    Community Member

    Hi, a different approch could be to play/pause the media when variable changes, and have the variable toggle on clicking the button. see if att. could workf but with Walt solution you definitly save some passages

  • If you are wondering if Stefano's approach is worth the extra effort of more triggers, it does give you a variable that you can use to tell if the media is playing, if you need that somewhere.

  • BrianMaki's avatar
    BrianMaki
    Community Member

    Stefano, exactly what I needed -- thank you so much. Did not want to create multiple buttons and this was the simplest explanation of the variable approach I was able to find.