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 :)
- pyxipyxCommunity Member
Thanks for sharing this Jackson!
Great job, its working perfectly. - WilliamHuangCommunity Member
Hi is this thread still alive? I implemented Jackson Hammer and it works great on the PC but it doesn't work on the iPHone .. not in Safari or Google Chrome.
- WilliamHuangCommunity Member
So here is the problem. This method doesn't work on Safari because Safari doesn't support volume control from javascript. See https://www.ibm.com/developerworks/library/wa-ioshtml5/wa-ioshtml5-pdf.pdf. I think the best way for use your code to play mp3 files with volume set to 1 (max volume) , and encode the desired volume using editing the audio file. Eg. 3 versions of the mp3 loud, medium and soft, and just switch files when you use the volume slider.
- LubnaThabseem-1Community Member
Hi, Jackson,
Is it possible to have the background music play across layers, if I wanted to add interactivity in the middle of the video?
I'm creating an animation that has the same audio continue across multiple layers on a single slide. I want to add a button feature on one of the slides without interrupting the animation on these layers. At the same time, I want the button to take the user to a certain layer. Is this question clear?
I'd really appreciate your help.
Thanks,
Lubna.
- pyxipyxCommunity Member
Hello and thanks Jackson for this great example,
is there a way to play the music at the loading of the course without clicking on any button ?thank you for the response !
- BrianAllenCommunity Member
pyx, take a look at this support article and let us know if it answers your question: https://articulate.com/support/article/Storyline-and-Studio-HTML5-Audio-Won-t-Play-in-Google-Chrome-66-and-Later
- pyxipyxCommunity Member
Thank you Brian for this support article, it helps to understand the problem.
- Will_FindlayCommunity Member
I downloaded the Background_Music_Version_2.story example file, and published and tested it and was flabbergasted to find that it worked! How is that possible when all I had was the .story file and hadn't set up additional folder with the mp3 files? Are the mp3 files being pulled into the .story file somehow?
I just can't figure out how this is working when I never set up the additional folder with the index.html file and the mp3 files.
- pyxipyxCommunity Member
Hi Will,
the index.html and the mp3 files are included in the web object that is inserted on the .story,
so when you publish the course it creats a folder (\story_content\WebObjects\....) that contains the index.html and the mp3 files.Hope that answers your question.
- Will_FindlayCommunity Member
Thanks pyxi! I think what surprised me is that when you point to the WebObject folder on your local drive, it is actually importing that folder INTO your .story file.
Here is how to verify this: If you change the extension of your .story file to .zip you can explore the content of the project. Double click the zip, and navigate to this folder:
...\your_story_file_changed_to.zip\story\media\
In the folder, you will find a file that ends in .bin. This is a binary file (noneditable) that contains the items that were in the folder you pointed to when inserting the Web Object.
- AndersonRumuyCommunity Member
LMS or scorm cloud does not support Background Music using Javascript.
Anybody have the same problem?
already tried many times and that is my conclusion.
or maybe someone have others way to run Background Music for Uploading to LMS?
- BrettGrover-769Community Member
All,
So I am reviewing the steps and screenshots of "How to add Background music) and it is not working for me. This post appears to be over 4 years old so I am reaching out to see if there is an easier/faster way of doing this with Articulate Storyline 360? Please help!
Hi Brett!
Since this post is dated, Jackson might not be subscribed anymore. You could always reach out to Jackson using the "Contact Me" button in their profile.
Secondly, I'm looking at the previous comments and this seems to be a workaround for having continuous music throughout the course. Since this isn't something we currently support, I'm going to let our community members chime in!
- AlvaroAvilesCommunity Member
Hi Lauren,
I just saw your post saying to contact Jackson, but "contact me" option is no longer in his profile...
I tryed to contact you too but doesn´t work eather..
I hope you can read this email.
Jackson´s Demos doesn´t work any more... and I was wondering if you can give me any tip to set up Audio volume control?
Audio is working on my entire project, but it has a pretty high volumen...
Thank you so much!!