Storyline 360: Java not working in Tempshare or Review Portal but works when opened from Windows Explorer

Apr 13, 2021

Hi guys,

In one of my courses I've been looking to add a manual mute button, there are a few ways to do this but I found some JavaScript that lets me do exactly what I need. When I publish the course and open the story.html with Chrome in windows explorer, the button works as intended. When I zip the course and upload to Tempshare or upload directly to the Review Portal, the button stops working. Therefore I'm lead to assume something is blocking the Java from executing when the course is not launched locally.

The JavaScript is as follows:

var allAudios = document.getElementsByTagName('audio');

if (allAudios.length > 0 && allAudios[0].volume > 0) {
for (var a = 0; a < allAudios.length; a++) {
allAudios[a].volume = 0;
}
} else {
for (var a = 0; a < allAudios.length; a++) {
allAudios[a].volume = 1.0;
}
}

 

I've also attached the story file so you guys can get a good look.

Thanks!

Be the first to reply