Forum Discussion
MegLassiat-5b2f
5 years agoCommunity Member
Audio Stop/Start Replay
Hello. On this slide, I want the audio to begin playing when the user hits play, and pause when the user hits pause (same button). I've set up a toggle switch and states to change between play/pause...
DavidSchwartz-f
5 years agoCommunity Member
Hi Meg,
There were a few things here that were causing an issue. I simplified by having the restart button stop the base audio and then play it, rather than having a separate layer with another copy of the audio. Also, disabled the hover trigger for the Pause/Play button. It's not necessary as the hover state works automatically, and in this case, the trigger was preventing the appropriate state of the button from displaying.
I changed the default value of the AudioOn variable to false, so it's true when audio is playing.
I also added a couple of triggers to change that variable and the state of the Pause/Play button when the audio ends, so that the user can hit the play button again if they want.
Related Content
- 8 months ago
- 4 months ago