Viewing 2 replies - 1 through 2 (of 2 total)
  • webhosting4u

    (@webhosting4u)

    Forgive my ignorance, but where am I putting this?

    CJ

    cokeyblokey

    (@cokeyblokey)

    You can bypass the need for the script above by disabling Background Sound by default, in the Soundy Background Music Settings page. Then enable sound on a page by page basis, via the metabox on each page and post.

    If that’s not suitable for you then add this to your footer (modified from above code):

    <script>
            jQuery(window).load(function() {
            
    var myAudio = document.getElementById('war_soundy_audio_player');
    
            myAudio.addEventListener('canplay', function() {
              myAudio.play();
           });
    
            myAudio.load();
            myAudio.play();               
     
                });  
    </script>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘autostart on Chrome don’t work’ is closed to new replies.