Forum Discussion
Background Audio Cool Trick
Hi All,
Just wanted to share a way to add audio across all slides in Storyline 2 There are a few posts on here about this, and I found this method to be super simple.
**Please note that this is just a cool trick, and not a built in feature of Storyline 2.
Publish your course, open the story.html file with Notepad, scroll to the bottom and add this code
<audio src="YOURAUDIOHERE.mp3" preload="auto" autoplay loop></audio> with a space before the </body> and place your audio file into the published output folder and there you go. That is it.
Here is an example, http://bit.ly/1sy5dkV and the output folder is attached.
Have fun!
Hello, Everyone! ✨
I'm happy to share that we have released a new update for Storyline 360 (Build 3.79.30834.0).
In this update, we have an enhancement where:
- Background audio is now supported in the published video output.
As a first step, I recommend updating Storyline 360 to the latest version. Here's how:
If you have any questions, please let us know in this thread or privately in a support case.
Have a great day!
281 Replies
- DeirdreShermanCommunity Member
I was finally able to get it to work by inserting the code below into both the story.html AND the story_html5.html files. The problem now is that the background music is drowning out the VO. I used this code:
<iframe src="YOURAUDIOHERE.mp3" allow="autoplay" id="audio" style="display:none"></iframe>
Does anyone know of a way to set the volume of the background music?
- JuliusDavidNatiCommunity Member
Hi Deirdre Sherman,
That was my problem too when I tried this trick.
The easiest way for me to do, that time, is to manually edit the background
music.
I just used free software to do it and it worked fine.
I hope this helps.Thanks,
DavidDavid Natividad
Instructional Designer
Pearson People ServicesPearson Management Services Philippines, Inc.
7F North Tower, Rockwell Business Center
Sheridan corner United Street, Mandaluyong City, PH 1552
Mobile Number +63 922 8654739Learn more at pearson.com
[image: Pearson]
- JillSpealman-97Community Member
Hi Deirdre,
You will need to open your audio file with a tool such as Audacity, lower the audio level of the file itself, and then save the new file. I saved a 2-3 files until I got it right.
- ToddHaynes-f106Community Member
I don't use this code because I find it to be technically buggy and the process is time consuming (hand edit code each time you publish). Instead, I've build projects with only 1 slide and a LOT of layers. Just put the background audio in your slide or a layer... The viewer has no idea the presentation is composed this way. Yes, managing that many layers has it's own issues - but when you click Publish, it works on ALL browsers and mobile devices and has no issues with LMS & SCORM integration.
- DeirdreShermanCommunity Member
Hi,
I wonder how you would make this work for a traditional course with multiple lessons, quizzes, results slides, etc. How do you use only one slide with quizzes at the end of each lesson?
- JerryBeaucaireCommunity Member
I second Todd's suggestion. BG audio in the base layer playing in a loop and individual narration audio in each layer on top makes for a seamless and professional result.
- OwenHoltSuper Hero
If you use the JavaScript solution discussed multiple times in this thread, there is no need to edit the html by hand each time you publish.... and you can have full control over the volume.
- JerryBeaucaireCommunity Member
For me, the need to use layers for a consistent BG music track doesn't actually continue to the quiz, I like for the audio to change when something really different is onscreen. So the quiz at the end of a layered scene could be on a slide of it's own with its own special "thinking" music background.
After the quiz/knowledge check is over, we start the next layered scene.
- EdwardJassin-54Community Member
Hi All, If I am using the below JavaScript to play an audio file for background music, what would I need to do to make sure it loops continuously?
Using SL360...not working when I edit code <audio src="YOURAUDIOHERE.mp3" preload="auto" autoplay loop>
var audio = new Audio('jazz1.mp3');
audio.play(); - RyanCarlsonCommunity Member
This is a great solution, but is there anyway to add something that would allow he pause/play button to actually pause the background music too? OTherwise, it works great even when publishing for xAPI.
- MlaniePellet784Community Member
does it work with Storyline 360?
- DarinFennellCommunity Member
Emily,
This looks like a great idea that is simple to execute. Unfortunately, I am not able to get it to work for me. Any help would be greatly appreciated. BTW, I am using Storyline 3 on a Windows 10 computer.
Related Content
- 2 months ago
- 4 months ago
- 5 months ago
- 9 months ago
- 10 months ago