Forum Discussion
AkashJambhorkar
8 years agoCommunity Member
Java script for MUTE/UNMUTE audio in Storyline 3
Hello All,
Is it possible to MUTE/UNMUTE audio in Storyline 3 (HTML5 output)? I'm working on a course with a custom interface with a button that's supposed to mute/unmute - not pause/play or stop/...
SheetalDeopu194
Community Member
Hi Akash, here is the solution you are looking for. Try following code to mute/unmute audio.
//To mute audio add following Code
var appState = window.DS ? DS.appState : require("helpers/appState");
appState.onToggleVolume(0); //mute
//To unmute audio add following Code
var appState = window.DS ? DS.appState : require("helpers/appState");
appState.onToggleVolume(1); //unmute
RussLickteig
4 years agoCommunity Member
Love it! Thanks Sheetal!