Adding audio/sound to a button
Jun 23, 2016
By
M Tilles
Is there a better/easier way to add audio to a button without having to add a separate layer to play the audio? I have several buttons throughout my course that play different audio clips and sometimes they appear on the base layer, other times they appear on a feedback layer. It would be nice to attach audio directly to the button, but I don't think that's a possibility.
Has anyone figured out an easier/more efficient way to attach audio to a button?
10 Replies
If I understand correctly, you can do it by adding sound to state, f.e. if you want to play sound when you hovered on button, add sound to hover state, if you want to play sound when you click button, add sound to down state etc.
Thanks Kamil. That's a great idea! However, when I add audio to a down state, it only works if I literally hold the button down. If I just click the button, it doesn't work.
Hi M,
The down state is just that - the act of clicking on the button, so when you release it it's no longer in the down state. What about just adding a trigger to play media X when the user clicks button A?
Thanks for your response Ashley, but unfortunately, the button also has a navigation trigger, so it doesn't give it enough time to play, even if the play media trigger happens first.
So if you want to play media before jump to next slide, you can do something like that:
1) click next button and show layer with your media
2) at the end of this layer (be sure that media completes) create trigger jump to next slide when timeline ends or when media completes.
Thanks Kamil. I was hoping to avoid adding a layer for each button since I have so many different ones and they appear on most slides throughout my course.
Hi M,
Ah, I understand now - unfortunately you'd have to go the layer route so that way it has time to play before jumping to the next slide.
Put the Audios on the Materslide. Give every element a trigger with: play on a Trigger(true/false) true event plus a Trigger(text) with a Name(for example: click). Than also give an toggle event on the mediato set the Trigger to false again.
So everytime u need the Audio set three triggers. First the one which, choose the media(click), then the interaction(gotoSlide) then set the Trigger to true.
Hey Niko,
Thanks for chiming in to share a solution. This could help others that run across this thread in the future for sure.
Welcome to E-Learning Heroes by the way.
Great idea. Thanks