Forum Discussion
Javascript to MUTE audio?
I understand that I have to create trigger: Execute JavaScript
var appState = require("helpers/appState");
appState.onToggleVolume();//mute
when user clicks "Audio off" button
But how do I create the trigger to turn the audio back on?
Note that I have different audios in each slide. The player is disabled and I have custom menu buttons. I would like the button in the main menu to mute all audios in all the slides, if possible. Alternatively, and if it's the only way in which this works, I can add this mute/umute button in each slide.
Any help with this would be very much appreciated!
Best,
Julia.
- BobODonnell6 years agoCommunity Member
Its a "toggle". Click once, the audio is off. Click again, the audio is back on. If you have to comply with Section 508 you'll need to create a button state with text or an icon showing which state the button is currently in. For instance, when selected it could say "Audio Muted" and/or have the "No" symbol on it.
Our button is on the interface, so it was placed 1 time in the Slide master and it appears on every screen.
Good luck.