Is it possible to MUTE audio in Storyline? I'm working on a course with a ground-up custom interface with a button that's supposed to mute/unmute - not pause/play or stop/play - the audio.
Are there any Javascript gurus out there who know if this is possible? And if so, can you provide the scripts for mute and unmute? That would SO make my day.
I have now found a slight issue with this in that if you click away from the tab, WHILE THE AUDIO IS OFF and then click back the javascript no longer executes - the audio will not switch back on.
This is still mostly the best solution but I do not know how to fix this issue
We have noted on a an IE browser after publishing a project the JavaScript for Mute/Unmute will not execute and the volume remains on. Is there likely to be an 'odd' browser setting preventing this? We are pointing our finger at the computer/browser because the Mute/Unmute works perfectly on 99% of devices tested.
Thank you for your input. We are using classic player and bespoke navigation via storyline 360
**** CONFIDENTIAL ****
The information in this message and in any attachments may be confidential. If you are not the intended recipient of this message, you must not read, forward, print, copy, disclose, or use in any way the information this message or any attachment contains. If you are not the intended recipient, please notify the sender immediately and delete or destroy all copies of this message and any attachments. VICSES IS Service Desk 1300 737 101
Thank you! That does make a lot of sense. Much appreciated
**** CONFIDENTIAL ****
The information in this message and in any attachments may be confidential. If you are not the intended recipient of this message, you must not read, forward, print, copy, disclose, or use in any way the information this message or any attachment contains. If you are not the intended recipient, please notify the sender immediately and delete or destroy all copies of this message and any attachments. VICSES IS Service Desk 1300 737 101
Does anyone have a solution if you have two or more audio files playing but you just want to mute one file and let the others keep on playing? example : 3 audio files 1. drums 2. bass guitar 3. piano ... when timeline starts all audio is triggered to start playing. When user clicks on drums mute button it mutes drums then unmute when clicks again and the drums are still in sync with the other media.
I understand that I have to create trigger: Execute JavaScript
var appState = require("helpers/appState"); appState.onToggleVolume();//mute
when user clicks "Audio off" button
But how do I create the trigger to turn the audio back on?
Note that I have different audios in each slide. The player is disabled and I have custom menu buttons. I would like the button in the main menu to mute all audios in all the slides, if possible. Alternatively, and if it's the only way in which this works, I can add this mute/umute button in each slide.
Any help with this would be very much appreciated!
Its a "toggle". Click once, the audio is off. Click again, the audio is back on. If you have to comply with Section 508 you'll need to create a button state with text or an icon showing which state the button is currently in. For instance, when selected it could say "Audio Muted" and/or have the "No" symbol on it.
Our button is on the interface, so it was placed 1 time in the Slide master and it appears on every screen.
Hi! This week I updated storyline 360 and Javascript no longer works. Trainings published before the update are ok, but those after the update do not work properly. Do you have a solution for this?
141 Replies
if (document.location.href.indexOf('html5') < 0) {
} else {
var player = GetPlayer();
Audio.setMasterVolume(0);
$('audio').prop('volume','0');
}
Above code is not working in storyline 360. Please suggest what can i do to mute the audio.
for 360 use this code to toggle the audio on and off:
var appState = require("helpers/appState");
appState.onToggleVolume();//mute
(I can't take credit for this - a guy I work with figured it out)
Awesome! You have no idea how much I've tried to get this feature to work. Thanks for posting!
I have been struggling with this issue for some time. This is a perfect solution. I can use the control in the master slide.
Thanks, Lizzie for posting and "the guy" for figuring it out.
where we can put this code
var appState = require("helpers/appState");
appState.onToggleVolume();//mute
Hi there, I'm facing some trouble with audios, when I move to the next slide the audio begin to sound. Any Ideas please!!!
Thx, César.
you need to use a 'Execute JavaScript' trigger and then copy and paste in the code:
var appState = require("helpers/appState");
appState.onToggleVolume();//mute
I have now found a slight issue with this in that if you click away from the tab, WHILE THE AUDIO IS OFF and then click back the javascript no longer executes - the audio will not switch back on.
This is still mostly the best solution but I do not know how to fix this issue
Hello.
We have noted on a an IE browser after publishing a project the JavaScript for Mute/Unmute will not execute and the volume remains on. Is there likely to be an 'odd' browser setting preventing this? We are pointing our finger at the computer/browser because the Mute/Unmute works perfectly on 99% of devices tested.
Best regards,
Nicole
Just tested one of our courses here on IE and the mute/unmute seems to be working fine.
We are using the 'classic' player with the buttons hidden and bespoke ones built.
I believe there maybe some function difference if you are using the 'modern' player but have not tested that myself.
Thank you for your input. We are using classic player and bespoke navigation via storyline 360
**** CONFIDENTIAL ****
The information in this message and in any attachments may be confidential. If you are not the intended recipient of this message, you must not read, forward, print, copy, disclose, or use in any way the information this message or any attachment contains. If you are not the intended recipient, please notify the sender immediately and delete or destroy all copies of this message and any attachments. VICSES IS Service Desk 1300 737 101
The issue computer is a dinosaur
#If the computer is a dinosaur - chances are that it is running the Flash version of the course and the Javascript therefore won't work.
Thank you! That does make a lot of sense. Much appreciated
**** CONFIDENTIAL ****
The information in this message and in any attachments may be confidential. If you are not the intended recipient of this message, you must not read, forward, print, copy, disclose, or use in any way the information this message or any attachment contains. If you are not the intended recipient, please notify the sender immediately and delete or destroy all copies of this message and any attachments. VICSES IS Service Desk 1300 737 101
Does anyone have a solution if you have two or more audio files playing but you just want to mute one file and let the others keep on playing? example : 3 audio files 1. drums 2. bass guitar 3. piano ... when timeline starts all audio is triggered to start playing. When user clicks on drums mute button it mutes drums then unmute when clicks again and the drums are still in sync with the other media.
I understand that I have to create trigger: Execute JavaScript
var appState = require("helpers/appState");
appState.onToggleVolume();//mute
when user clicks "Audio off" button
But how do I create the trigger to turn the audio back on?
Note that I have different audios in each slide. The player is disabled and I have custom menu buttons. I would like the button in the main menu to mute all audios in all the slides, if possible. Alternatively, and if it's the only way in which this works, I can add this mute/umute button in each slide.
Any help with this would be very much appreciated!
Best,
Julia.
This post was removed by the author
Its a "toggle". Click once, the audio is off. Click again, the audio is back on. If you have to comply with Section 508 you'll need to create a button state with text or an icon showing which state the button is currently in. For instance, when selected it could say "Audio Muted" and/or have the "No" symbol on it.
Our button is on the interface, so it was placed 1 time in the Slide master and it appears on every screen.
Good luck.
Thank you so much! This is awesome!
thanks for help
A life saver code.
var appState = require("helpers/appState");
appState.onToggleVolume();//mute
Thanks to whoever came up with this solution.
Thank you very much for the code Naku
Hi Naku,
Can you please suggest how to add this 'lifesaver code' in Tuggle mute/unmute button.
It will be more understandable if you share SL file for an example.
THX works great with 360.
Hi!
This week I updated storyline 360 and Javascript no longer works.
Trainings published before the update are ok, but those after the update do not work properly.
Do you have a solution for this?