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!
- BrigidNaglichCommunity Member
Do they need to have a button that starts the music? Not sure how to fix - is there a way to override Chrome disabling the auto-play?
Hi Brigid,
There isn't a way to override the autoplay behaviors Chrome set up, but you'll want to review the information here on what will happen with your courses.
- KimBoggsCommunity Member
HELP Please. I cannot get this code to work. I have added it as explained above, but the music will not play. I added the mp3 file to the published file location. attached is a pic of the HTML code and also my file. thanks for any help you can provide.
- FredGoodCommunity Member
I think maybe you need to put the code snippet BEFORE (not BETWEEN) the </body> and </html> tags? *Since you're showing the story.html code not the story_html5.html code
- KimBoggsCommunity Member
I did try that and got the same result.
- FredGoodCommunity Member
Hmmm... is it not working in more than one browser?
- KimBoggsCommunity Member
We only have IE here. However I just tried HTML5 and it is working. I will have to see how that works in our LMS now.
- FredGoodCommunity Member
Gotcha. My next suggestion was going to be to make sure you placed your audio file into the published output folder (this is where I goofed), but you said you've done that... hmmm...
- KimBoggsCommunity Member
Update. I got the audio to play in the HTML 5 output. Now, I am trying to figure out how to get the music to fade at certain points to allow for narration in the presentation. Any java code experts for this one?
- FredGoodCommunity Member
Ooo, I gotta tap out here... :D lol I'm not the java script expert you're looking for! Good luck! Please post your results if you can, as I would love to know how you accomplish that!
- LNgCommunity Member
Hi I have added the code in the story_html5 and uploaded onto our LMS (SuccessFactor). However, the BGM doesn't seem to be working. Apart from that, everything runs smoothly.
I have then remove the code and added in the index_lms_html5 and it worked. But it is not allowing the LMS to record completion. The system is unable to mark complete although all slides are visited. Any other solution on this?
Regards
Leslie