119 Replies
Sarah Pouezevara

Hi. I'm also interested in adding background music to a slide with several layers. The layers are animated like a slideshow (with fade in/fade out animations), but I want the background music to continue across all layers. The only way I have been able to do this is to break the sound up and add it to each layer, but it's choppy... I'm very new to storyline so appreciate any hints if there is a way to make this more fluid.

Thanks!

Kenny T

Step to add background music:

1. Publish your story first

2. In the output folder, open story.html with notepad and edit the HTML code as below:

    2a. First, find the coding -

    2b. Add new coding underneath as follows:

         
         
         
         
            

    2c. Change the  "yourmusicfile.mp3" to your mp3 file name

3. Save the story.html

      

Christine Hendrickson

Hey Andy,

Sorry to jump in here. Just wanted to repost Kenny's code:

          < embed src="yourmusicfile.mp3" autostart="true" loop="true" width="2" height="0" >
          < /embed >
          < noembed >
          < bgsound src="yourmusicfile.mp3" loop="infinite" >
          < /noembed >  

I had to add some additional spaces so it would show up properly. 

I hope this helps :)

Christine

Christine Hendrickson

Welcome to the community, Ian!

Here's his entire post (I modified it again, so hopefully it will all show up):

Step to add background music:

1. Publish your story first

2. In the output folder, open story.html with notepad and edit the HTML code as below:

    2a. First, find the coding -

    2b. Add new coding underneath as follows:

         
         
         
         
            

    2c. Change the  "yourmusicfile.mp3" to your mp3 file name

3. Save the story.html

I hope this helps :)

Have a great day!

Christine

Christine Hendrickson

Hi Debbie. Welcome to the community!

I'm afraid I did not write that code, or the directions. I was simply modifying it, because the original code with the proper placement of the <>, etc, wouldn't allow the forums to display the content. 

You may want to try contacting Kenny, who posted the original code earlier, or maybe one of the community member's that have used this successfully can give you some advice :)

Thanks!

Debbie McCusker

Kenny T said:

Step to add background music:

1. Publish your story first

2. In the output folder, open story.html with notepad and edit the HTML code as below:

    2a. First, find the coding -

    2b. Add new coding underneath as follows:

         
         
         
         
            

    2c. Change the  "yourmusicfile.mp3" to your mp3 file name

3. Save the story.html

      

@Kenny,

Thank you for this coding. I have a question though - where do you place the "yourmusicfile.mp3" ? I tried placing it in the root directory as well as the story_content folder, but neither seem to be working.

Any help would be GREATLY appreciated!

Nancy Woinoski

Christi Bowser said:

I want to have slide narration with music/sound effects (different file) in the background.  The music does not have to continue beyond one slide.  I could do that in presenter using playlist for the background music.  Is this doable in Storyline?


Hi Christi - you can add more than one audio track to a slide and as Ashley indicated in her post, you can control the volume of each track independently which allows you to lower the volume of the music track.