Forum Discussion
background music in Storyline
Hi everybody,
Is there any way to insert background music like in Presenter in Storyline?
Thank you
Hi everyone!
I have some great news to share. We just released another update for Storyline 360. In Update 74, we've included important fixes and new features.
One of the new features we've included is:
- Create immersive experiences with continuous background audio that sets the tone and keeps learners engaged.
Launch the Articulate 360 desktop app on your computer to take advantage of this update, and click the Update button next to Storyline 360. You'll find our step-by-step instructions here.
Please let me know if you have questions!
- PaulZamoraCommunity Member
Got it working, I modified the code somewhat.
Place the embed code under the <!-- Version comment....
This is just for a straight play, no looping. Swap out your music file name, and reisze it to 1x1. I have it as 100x100 just so you can see where it goes. Give it a go!<!-- version: 2.6.1507.2315 -->
<embed src="yourmusicfile.wav" autostart="true" loop="false" width="100" height="100" > </embed >
- AlexandrVorobjoCommunity Member
Hello!
I use this solution:
After publication, in the file story.html and story_html5.html before </body> insert this code:<audio id = "music" preload = "auto" autoplay loop autobuffer>
<source src = "file.mp3" />
</ audio>
After the opening <body> tag embed code:
<script>
function change_volume (volume_level) {var audio = document.getElementById ("music");
audio.volume = volume_level;
}
</script>In the project, on a slide (or a masterslide), if I need to change sound level, i use JavaScript trigger:
var volume_level=0;
change_volume(volume_level)where volume_level specify the desired sound level: 0 - no sound, 1 - 100% volume, 0.5 - 50% of the volume.
Sorry for my english.
- DanaDutielCommunity Member
I have a really dumb question....how do you open the story.html file in notepad?
Thanks,
Dana
- DanaDutielCommunity Member
Nevermind, I figured it out. It's one of those days. :)
Glad you figured it out Dana and thanks for updating us.
- BhaskaryalijalaCommunity Member
Yes its possible ...we can call background music through externally with script.
- ChristiePollickCommunity Member
Hi, Bhaskar -- Thanks for your reply, and if you would be able to share the solution that worked for you, I am sure many would be appreciative! :)
Hi Lee-Ann,
Thanks for reaching out with your question. If you've set the slide layers to pause the base layer when advancing to another layer, it would make sense that the audio would stop playing when you do so. If you return to the base layer does it pick up where it left off or are the users not able to hear the audio again at all?
- Lee-AnnWilliamsCommunity Member
It's not set to pause the base layer, that box is unchecked. I guess the larger question is, should I be able to make audio continue throughout all layers on the same slide, or does it only play when you are on the base layer?
Hi Lee-Ann,
Ah, sorry it seems I read your first post wrongly. If you have it set to not pause the base layer the audio should keep playing unless there is something else there stopping it. Without seeing your file it's hard to say what that could be, but you're welcome to share an example with us here using the "Add Attachment" button.
Additionally, I also wanted to let you know that responding via email includes your signature here so you're welcome to visit this forum page to edit the post and remove that.
- Lee-AnnWilliamsCommunity Member
I was able to get the music to play throughout by having the layers auto-advance when each timeline ends. In my original file, you launched the first layer by clicking a button. I don't see any reason why that would turn off the sound (there's no Stop Media trigger associated with it), but now it works.
Hi Lee-Ann,
When you click the "View" link or the title of the post within the email you'll be brought back to this page. Once on here your post appears on Page 5 which you can navigate too using the arrows at the bottom of the page.
I'm glad you figured out a way for it to work for you, and if you'd like us to take a look at the file you can either visit the forum page to upload it or you can send along to our Support Engineers using the link here.