Forum Discussion
Background Music Demo
I made a demo featuring background music that goes through the whole course (doesn't change from slide to slide). The user can chose from four songs to listen to and can adjust the volume, and the song continues playing through every slide and loops when it completes. I've also added instructions on how to make this work to the module.
I don't know whether someone else has already posted something like this (I couldn't find anything), but hey if so here's one more!
-------
I've put together a second demo that shows a different way to do this. This second version performs the same actions as the first one, but without needing to edit the output files every time you publish! It saves a lot of headaches when you need to edit something in the course because now you don't have to drop the music files into the output folder and you dont have to edit the html file every time you publish!
I've also attached the second version .story file. Its called Background_Music_Version_2.story.
If anyone needs help getting either versions of this to work I'm more than happy to assist :)
- ChristiePollickCommunity Member
Hi, Marcee -- I just wanted to stop in to mention that when you reply via email, your signature is displayed publicly here in the threads. You are welcome to edit to remove that information if you wish.
- MarceeWilliamsCommunity Member
Thanks for the heads-up Christine!
- JacksonHamnerCommunity Member
If the audio recorder built into storyline is giving you trouble I would try using a third part program like audacity. Its free to use and seems to do the trick for me.
You may also want to open a support ticket about it crashing on you and see if there's anything the staff can suggest.
- ChristiePollickCommunity Member
Sure thing, Marcee! :)
- AdamGagne-dd85aCommunity Member
This thread is great! Any suggestions on having audio play continuously over a single scene rather than an entire project?
Awesome Jackson, thanks for popping in to assist Adam here.
- JacksonHamnerCommunity Member
You're right, I was confused with what I did in the past to make this happen. What I did was not stop the audio but turn the volume all the way down.
So this trigger should stop the music from playing:
var audio = document.getElementById('bgSong');
audio.volume = 0.0;
When you want the audio to start playing again you can set the volume back up. - AdamGagne-dd85aCommunity Member
Perfect. Thanks again.
- PraveenDIxit-75Community Member
Thanks Guys for Javascripting
I am not a developer I don't know javascript.
Could you please provide me the javascript code for audio on / off on a single Storyline button.
Thanks in advance!
Regards,
Praveen
Looks like you found a good group to inquire with Praveen :) Good luck with your project.
- JaneJordan1Community Member
Hi Jackson
I have followed your background_music_version_2.story and loaded the java script as you had although I only have one song to play - however it didn't work - I know I must be missing something but not quite sure what it is
I have attached my file hoping you can help.
Jane