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
- PhilMayorSuper Hero
LOL
- GerryWasilukCommunity Member
Way to go, Steve!
- PatriceSigmonCommunity Member
Awesome! I appreciate your sharing your expertise with those of us who are less technically astute!
- GerryWasilukCommunity Member+100. We all should make a feature request on this.
Steve Flowers said:
Hi, Patrice -
Unfortunately, there's no built in trigger for muting / unmuting audio in Storyline. This would make a dynamite feature request. I think others would also love to see this type of feature.
- HeleneSobelmanCommunity Member
This is super awesome!!! i have been struggling with this for weeks and only now came across this post!
- 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
- SteveFlowersCommunity Member
A few folks have asked about the source for the SWF. It's a pretty simple file. Attached here.
- 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..
Related Content
- 7 months ago