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...
ElectronKarthic
12 years agoCommunity Member
M K said:
By the way, looking for a solution to implement mute/ unmute in HTML5 output. any help on the same will be greatly appreciated.
Thanks
MK
You can use a trigger to execute this javascript code on HTML5 mode,
$('audio').each(function(){
this.pause();
});
This will pause all the audio which are active. You can execute this on conditional basis (say when timeline starts if variable audio = false) then call this code otherwise let the audio to play by default.