Blog Post
RachelHorton-8b
6 years agoCommunity Member
Hi Allison,
I build a project all on one slide to take advantage of the seekbar to show progress. I wanted to give it a 'video' affect. It gives my colleague anxiety to think she may have to edit it someday. When I saw this thread I thought...yay...I can splice it into individual slides and use this progress bar technique. However, it has background music that plays throughout. Has anything changed in SL that allows the ability to play an audio file seamlessly throughout a project?
I build a project all on one slide to take advantage of the seekbar to show progress. I wanted to give it a 'video' affect. It gives my colleague anxiety to think she may have to edit it someday. When I saw this thread I thought...yay...I can splice it into individual slides and use this progress bar technique. However, it has background music that plays throughout. Has anything changed in SL that allows the ability to play an audio file seamlessly throughout a project?
- SunilBudke-6e176 years agoCommunity MemberHi Rachel,
Although SL does not let adding a continuous BG for all slides, there is a way around it. You will need to publish the file and then edit the index_lms_html5 file. You will have to add this small code to this file. The code will link the published course with the background music file.
So here are the steps:
1) Publish the final version of your project.
2) open the folder with published files.
3) look for index_lms_html5
4) open this file using a notepad or notepad++
5) Look for the tag in the code
6) Add this code before the tag
here is the code------
-----------------------------------
var audio = new Audio('bgMusic.mp3');
function bgAudioPlay(){
//alert ("CHK CHK");
audio.play();
audio.volume = 0.1;
}
document.addEventListener("click", function(){
bgAudioPlay();
});
----------------------------------------
8) save the file and close it.
9) Now copy the background sound file in the published folder and rename it to bgMusic.mp3
10) Thats it. You are set to upload it on the LMS.
11) you can tweak the code if you wish. Adjust audio.volume = 0.1 to 0.2 or 0.05 to increase or decrease volume.
Give it a shot. Hope it works for you. If tweaking index_lms_html5 does not work, try adding code in index_lms.
All the best ! - KirenJagdev6 years agoCommunity MemberHi Rachel,
I'm not sure it would work but you could try adding the audio to the slide master and set it to loop, I've done it and it's worked with slide layers and navigating between them didn't affect the audio, not sure if it would be the same for slides though. - AllisonLaMotte6 years agoStaffHi Rachel,
Unfortunately I don't have an update on that feature, sorry about that! Stay tuned to our What's New page for details on all the latest features: https://articulate.com/360/whats-new