backgroundmusic

Aug 27, 2015

Hi,

Discussed earlier, i know. But maybe some help here.

We have an elearning with background music, this works.
Problem is that it works fine in the browser. if you launch the
Articulate player, it won't play the music.
Is there any work around to make it still play in the player ?

 

With regards,

Joep

8 Replies
Joep Drunen

We have put this code in the index_lms_html5.html. It works fine with HTML5 output. 

If we place it also in the story or index.html it doesn't we assume it is because the player only loads the complete SWF. Is there no other file loaded were we could place code in order to play in the articulate player ?

 

End of body:

<audio id="audio" preload="auto" autoplay loop autobuffer>

        <source src="sound.mp3" type="audio/mp3">

    </audio>

<audio id="soundHandle" style="display:none;"></audio>

 

 

 

Underneath in a separate tag:

<script>

                var soundHandle = document.getElementById('soundHandle');

      

                 $(function() {

    

 

 

                    var test = addEventListener('touchstart', function(){

                                              

                                doFunction();

                    });

                     var test = addEventListener('click', function(){

                                              

                                doFunction();

                    });

 

                                   var doFunction =  function(){

                                              

                                  

                                       soundHandle.src = 'sound.mp3';

                                       soundHandle.loop = true;

                                       soundHandle.play();

                                      

                                       doFunction = undefined;

 

                                   }

 

                  });

 

               

                window.addEventListener("load",function() {

                               // Set a timeout...

                               window.scrollTo(0, 0);                 

                });

 

</script>

Ashley Terwilliger-Pollard

Hi Joep,

JavaScript isn't supported in the Articulate Mobile Player app per the article here, and we also don't offer support for the background music as it's not a functionality of Storyline. 

Just an FYI responding via email includes your signature here, so you may want to visit this thread and edit the post to remove your signature. 

This discussion is closed. You can start a new discussion or contact Articulate Support.