Forum Discussion
background music in Storyline
- 2 years ago
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!
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.