Forum Discussion
ShawnaGigacz-47
3 years agoCommunity Member
Muting Audio when course starts
I am using the code:
//mute/unmute // Use the global DS object if it exists, otherwise try require: var appState = window.DS ? DS.appState : require("helpers/appState"); appState.onToggleVolume...
Jürgen_Schoene_
3 years agoCommunity Member
this are the possible command to change the audio level
DS.appState.onToggleVolume();
DS.appState.currentVolume() // get sound volume [0 ... 1]
DS.appState.setVolume(value) // set sound volume value: [0 ... 1]
DS.appState.lastVolume // get value: [0 ... 1]
you can mute audio with
DS.appState.setVolume(0)
and set to the default player audio level with
DS.appState.setVolume(0.75)
you don't need ... require("...") - this was for earlier storyline versions
- CarolDawson3 years agoCommunity Member
Thank you so much! This is a perfect solution to meet my need.