Forum Discussion
RussLickteig
4 years agoCommunity Member
Mute audio in custom GUI or control volume
Hi everyone,
I need a way to Mute and Unmute audios in my Custom GUI. I have seen a couple of older threads about a Javascript approach but the sample Story file I downloaded did not work. There...
RussLickteig
4 years agoCommunity Member
//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