Forum Discussion
Background Audio On/Off Toggle
- 8 months ago
Hi David!
Yes, it's possible to build your own toggle switch 'in slide'. You can add a trigger to Pause/Stop/Play the Background Audio like any other media, or adjust the built-in BackgroundAudioVolume variable to change its volume (as a percentage).
Here's an example where I used a standard trigger to Play/Pause the Background Audio.
And here's a more recent example where I have linked the BackgroundAudioVolume variable to the position of a dial.
Whatever name you give to your playlist, this will show in the media list when you build a standard trigger.
You'll find the BackgroundAudioVariable variable in the Built-in Variables trigger list.
Ashley Chiasson covers this method in one of her brilliant tutorial videos:
https://youtu.be/hD9JId1EqZU?si=kr777WAUOldv3aBt
Thank you, that's a far more efficient solution. My trigger now looks like:
Assuming I have an object named BG Audio On/Off "♪" with states Normal and Off.
Upon testing, I find the above trigger does not persist between slides, so turning the Background Audio playlist off on one slide still has it play on the next. Thus, I return to my original solution that accounted for this problem.
- Jonathan_Hill8 months agoSuper Hero
For the change to persist over several slides, you'll need a slightly different logic.
- Create a new T/F variable named BackgroundAudio
- Toggle this using a switch
- Add two triggers to the master slide layer that state: When BackgroundAudio changes Play [Name of your playlist] if BackgroundAudio = TRUE, and vice versa
- Then also add two triggers that do the same when the timeline starts
- Then add an IF/THEN trigger that changes the appearance of your custom button on on or off based on the value of BackgroundAudio, also timed to the start of the timeline
- That last trigger will ensure your button reflects the current value of BackgroundAudio from slide to slide
- Jonathan_Hill8 months agoSuper Hero
Something like this DavidBrown-71c8...
- DavidBrown-71c88 months agoCommunity Member
Here's my (allegedly) final form, where an Object is named "BG Audio On/Off" and has two states, Normal and Off. There is also a true/false variable is named "VarBackgroundAudio_On" with a default value of True:
This allows the selection to persist through slides, including ones that might lack the On/Off toggleable object such as question banks.
Related Content
- 5 months ago
- 3 months ago
- 8 months ago
- 9 months ago