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 :)
- JacksonHamnerCommunity Member
I've updated the original post to include a second method of getting background music to play.
This new version doesn't require that you drop the music files into the output folder or edit the html file every time you publish. Saves a lot of time when trying to publish the course!
- ChelseaDelfinCommunity Member
Hi Jackson!
I know this is an old thread but I've been trying to figure out how to get the second method to work. Where do I place the music file then and is there a naming convention I need to use? I'm not knowledgeable in JavaScript so I can't seem to figure it out myself.
Cool - thanks Jackson!
- ChristiePollickCommunity Member
Awesome -- thank you, Jackson. :)
- MarceeWilliamsCommunity Member
I'm new here and not very familiar with JS or HTML. I've published my Storyline project for an LMS and when I open the story.html file to add the code, there's nothing in the file. Sorry to sound so dense, but what am I doing wrong?
- ChristiePollickCommunity Member
HI, Marcee -- Unfortunately, we do not provide support for JavaScript coding, but it may be helpful to take a look at this document on JavaScript Best Practices. Please feel free to share your .story file if you would like members of the community to take a closer look.
All you need to do is use the ADD ATTACHMENT button in the bottom left corner of the reply box in the thread, and you can browse for the file from there. Please also note that if you reply via email, your attachment will not appear here in the thread. Thanks! :)
- JacksonHamnerCommunity Member
Hi Marcee,
Could you provide a screenshot of the issue or your .story file? It is odd that your story.html file is empty, what program are you trying to open it in? - MarceeWilliamsCommunity Member
Hi Marcee,
You'll need to upload all the files within the published output to your LMS to test it. Testing published content locally could cause elements of the content to fail as detailed here.
If you're not ready for it to be live in your LMS, I'd suggest using SCORM Cloud as a testing platform as it's an industry standard for testing SCORM content.
- MarceeWilliamsCommunity Member
Thanks Ashley, but it runs fine in our LMS. I'm just trying to add the continuous audio coding to the html file, per Jackson's suggestion.
- MarceeWilliamsCommunity Member
Thanks Ashley. It runs fine in our LMS, I'm just trying to open the story.html file as suggested here to add the code to that will permit it to play continuous audio throughout the presentation and when I open that specific file, there is no code to modify.
Sorry Marcee - reading to fast and didn't remember that part. Editing the story.html file is not something I can assist with unfortunately, so I'll defer back to the folks that have been helping you here.