Forum Discussion
TriciaVerkuilen
5 years agoCommunity Member
Music in e-learning
Good Afternoon - I have a client wishing for music to be used within their e-learning module we are creating for them. A few questions:
1. Is music a good asset to include in e-learning or a distr...
ChrisDale
Community Member
Thanks for the guidance Owen, very useful. Is there a way to control the music once playing, ie stop it?
OwenHolt
5 years agoSuper Hero
If using JavaScript you can "stop" the music by just pausing it. If you don't want the music to pick up where it left off when you play again, you combine pausing the audio with moving the playhead back to the 0 second mark.
The JavaScript looks like this:
audio.pause();
audio.currentTime = 0;
and you need to to add an action on the Storyline side that will trigger the JavaScript executing (like, when user pushes a button).