Forum Discussion
Javascript to MUTE audio?
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.
Dazed and confused...
Patrice
141 Replies
- SteveFlowersCommunity Member
- PhoebeSchimpfCommunity Member
Awesome - you are indeed a Super Hero!!!!!!!!!!!!!!!!!!
- reneebarnes1Community Member
Hi Steve, does your toggler work for audio in a layer, and if the variables are assigned to a marker?
- SteveFlowersCommunity Member
The toggler is a global effector. So it'll mute everything everywhere, even if a layer. Variables are also global, so you should be able to toggle these from anywhere as well.
Steve
Hello everyone!
I was super excited to find this post because I was having the exact same issue. The only problem is that I discovered that now that I have added the togglemute widget to my project, the restart buttons no longer work. I confirmed that it is in fact the widget that makes them not work anymore, since when I deleted it they worked once again.
My restart buttons are "home made" from images with "hover" and "down" states, and a "jump to" trigger leading the to current slide. This is the only solution I have found for a custom restart button, as the only available "restart" trigger is "restart course" and not "restart slide."
Are any of you having this same problem? I have not been able to find a solution yet, so if you have any ideas they would be much appreciated!
Thanks,
Allison
- SteveFlowersCommunity Member
That's a strange symptom. Do you have an example you can post? Would love to have a look.
- MK4Community Member
Hi,
I just observed that this flash-javaScript workaround doesn't work on Firefox or Chrome. It only works on IE. I downloaded the muteToggler attachment from this thread and published it and noticed that it only works on IE. Following are the details.
Storyline version used to publish:Update 3: 1305.2012
IE 8 + Flash Player 11.8.800.94 (works fine)
FF v23.0.1 + Flash Player 11.8.800.97 (doesn't work)
Chrome v29.0.1547.66 + Flash Player 11.8.800.97 (doesn't work)
Has anybody experienced same issue?
Thanks in advance
MK
- SteveFlowersCommunity Member
Hey MK - are you running these locally or from a remote host? Sounds like the Flash Player Security Sandbox could be playing its hand.
- MK4Community Member
Hi Steve, yes its working fine on all the browsers when run from a remote host.
Thanks for the input. It helped.
MK
- MK4Community Member
By the way, looking for a solution to implement mute/ unmute in HTML5 output. any help on the same will be greatly appreciated.
Thanks
MK
Related Content
- 7 months ago