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
5 years agoCommunity 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
- JanagiramanD4 years agoCommunity Member
Hi Sheetal, thanks for the above script. Its working fine for me too; but my problem is:
- I mute the audio
- Navigate to anyother opened tab
- When I come back and try to unmute the audio, it doesn't work.
Can you please help me on this one. Or anyone in the community, please give your suggestion.
- RussLickteig4 years agoCommunity Member
Love it! Thanks Sheetal!
- RajendraKorde3 years agoCommunity Member
Hi Sheetal,
This code works fine when we launch the course. but when we mute the audio and resume the course the code was not working.