Forum Discussion
PatriceSigmon
13 years agoCommunity Member
Javascript to MUTE audio?
Is it possible to MUTE audio in Storyline? I'm working on a course with a ground-up custom interface with a button that's supposed to mute/unmute - not pause/play or stop/play - the audio.
Are t...
NiteshKumar-34e
Community Member
if (document.location.href.indexOf('html5') < 0) {
} else {
var player = GetPlayer();
Audio.setMasterVolume(0);
$('audio').prop('volume','0');
}
Above code is not working in storyline 360. Please suggest what can i do to mute the audio.
LizzieAngell
8 years agoCommunity Member
for 360 use this code to toggle the audio on and off:
var appState = require("helpers/appState");
appState.onToggleVolume();//mute
(I can't take credit for this - a guy I work with figured it out)