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 :)
- KeithRambertCommunity Member
Hello
I hope you all are still around. I followed the steps to get music to play in the background by editing the story.html file with the audiosource tag . It works great previewing it in IE but when I uploaded it to the LMS there's no music.
Hi Keith,
It's not code that I can assist with, but if you'd like folks in the community to take a look can you share the code snippet that you included here with them? Also you said you were editing it in the story.html file and that's what is created when you publish for Web but you likely need to publish for LMS if that will be where you're ultimately uploading the published output.
- KeithRambertCommunity Member
I just tested it on SCORM cloud and the audio plays along with the narration just fine.
- KeithRambertCommunity Member
OK so the background music tag works in Chrome and Firefox but not in IE.
- KeithRambertCommunity Member
Fixed with the Compatibility setting in Cornerstone.
Very good Keith - thanks for keeping us up-to-date on your testings/findings.
Hello Anne and welcome to E-Learning Heroes :)
Not sure if Jackson is still subscribed here or not as this thread is a bit dated, but thanks for sharing your file so that the community can take a peek and assist.
If you do not hear back soon, you are welcome to reach out to the user directly via the 'Contact Me' option on the user profile.
Glad to hear it Anne - I did want to let you know that replying to the forums via e-mail attaches your signature. You are welcome to pop in and edit if needed.
- AlexandriaLairdCommunity Member
Hello Anne,
For the location variable you are correct, it should be the forward slashes (what I copied there was incorrect). You should correct the slashes to match Jason's example.
Secondly, I am not sure why the web object is changing. I believe once you have put it in and publish the first time it should remain named the same. I created mine and then published it many times to test it and have had no problems with the location needing changed.
A few other things to check:
- Make sure your song name in the script on your first slide matches the song file name exactly in the file you created the web object.
- Double check your location variable is accessing the correct web object and that the file name is an exact match.
I know this process can be frustrating, it took me quite a while to get mine working properly, but it is definitely worth all the effort once it works! Hopefully this helps!
~Alexandria
- LywandaHeldCommunity Member
This works for me (!!!) within our LMS (Saba). Thanks so much!