Forum Discussion
Hi Sue,
I've attached a sample of how I would set this up. There may be others out there that have different ideas but here's one for you to start with anyway! Here are the steps I took:
- I added a Play/Pause button and a Restart button
- I added a True/False variable called AudioOn
- I added audio to both the base layer and to a layer called Restart audio.
- I added a trigger to Toggle the AudioOn variable when someone presses the Play/Pause button, so if it is True it will switch it to False and if it is False it will switch it to true (I also added some states and triggers to change the appearance of the play/pause button just for effect!)
- I added a trigger to play the audio when someone clicks the pause/play button if AudioOn is false (the default is set to false)
- And I added another variable to pause the audio when someone clicks the pause/play button if AudioOn is true
That takes care of the play and pause functionality. For the restart one:
7. I added a trigger to the restart button to jump to the Restart audio layer when the user clicks this. Here the audio will play automatically as soon as the layer starts.
8. The play/pause button from the base layer will still function here
9. I added a second restart button to the restart audio layer that will restart the timeline on this layer, just in case the user clicks the restart button a second time.
I know it seems like a lot of steps but once you set it up once you should be able to copy/paste it to other slides with just a few adjustments.
Hope this helps!