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/...
vishalagarwal
Community Member
Hi Akash,
Use below code with condition this will work:
if (document.location.href.indexOf('html5') < 0) {
var player = GetPlayer();
player.SetVar("muteToggle",true);
} else {
var appState = require("helpers/appState");
appState.onToggleVolume();//mute
}
I am using this in my current course and this is working with me.
NicoleRalph-117
6 years agoCommunity Member
Hello Vishal,
Is there a way perhaps to visually show the learner when mute is on or off? Perhaps an icon in a green colour for on and red for off?
Many thanks
Nicole
- vishalagarwal6 years agoCommunity Member
Hi Nicole,
You can create a toggle mute/unmute button and give on that button.
It works.