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
- stevecicciCommunity Member
Super Hero - Steve Flowers: thank you for the solution.
I'm wondering: do you have the Flash source file? Also, I'm wondering since it is using Javascript, if it can't be modified to operate as a custom scripted trigger, so that it doesn't relay on a external SWF? I'm not a javascript writer so I'm somewhat at a loss to take this any further. We're often doing a build-once/run-twice approach, so having a solution for only flash is limiting.
Thanks for your (additional) thoughts and help. - SteveFlowersCommunity Member
Happy to post the FLA once I find it Since there aren't any JavaScript > Storyline Player commands to modify the volume of the player, this was the only way to accomplish it so far. This uses native ActionScript commands to modify the volume globally. The JavaScript was put in place to round trip between Storyline and Flash. Since the SDK and API for the SL player hasn't been revealed, it wasn't possible to communicate between the two SWF's directly.
I'd love to see some JavaScript commands to modify states in the player. Things like:
JumpToSlide(ID);
MutePlayer();
Pause();
Play();
These would be super handy. Join me in submitting a feature request:)
- GerryWasilukCommunity MemberAlready there! :)
Steve Flowers said:
These would be super handy. Join me in submitting a feature request
- PhoebeSchimpfCommunity Member
This is a big request - but any chance we could get the fla in CS5? We aren't upgrading to 5.5 and I can't open the FLA file unfortunately..
- 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.