• Resolved jorgk3

    (@jorgk3)


    Hi,

    I’ve seen that a few people have trouble with this.
    The background sound at my site https://cuadernoimaginario.cl/ works fine at first in IE and Chrome.

    In Chrome, if you navigate to a page and then return to the portal page, the sound is played twice and the the pause button doesn’t work any more.

    In IE I can’t reproduce the effect.

    In FF the sound is always played twice, therefore louder, sometimes time-shifted, and the pause button never works.

    Three browsers, three different behaviours, I love it!

    https://www.ads-software.com/plugins/soundy-background-music/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter jorgk3

    (@jorgk3)

    Found the problem, but I don’t know how to fix it.
    The theme uses (see below).

    If the Google stuff is removed, then the playback works.
    Only the background doesn’t work any more.

    ===

    <!-- Google jQuery Core -->
    	<script src="https://www.google.com/jsapi"></script>
    	<script>google.load("jquery", "1");</script>
    	<script src="https://cuadernoimaginario.cl/web_2013/wp-content/themes/cuaderno/js/jquery.ez-bg-resize.js" type="text/javascript" charset="utf-8"></script>
    	<script>
    		$(document).ready(function() {
    			$("body").ezBgResize({
    				img     : "https://cuadernoimaginario.cl/web_2013/wp-content/themes/cuaderno/images/background.jpg",
    				opacity : 1,
    				center  : true
    			});
    		});
    	</script>

    Thread Starter jorgk3

    (@jorgk3)

    Problem solved!! Uff.

    Basically, these lines

    <script src="https://www.google.com/jsapi"></script>
    <script>google.load("jquery", "1");</script>

    had to go.

    That then changes the call:

    $(document).ready(function() {
    jQuery(document).ready(function($) {

    Plugin Author Bertrand du Couedic

    (@bducouedic)

    Great !

    Congratulation for having found the problem and thanks for having published the solution !

    Thread Starter jorgk3

    (@jorgk3)

    Thank you for the great plug-in. I feel sorry that you have to deal with people like myself who use it inappropriately and cause problems.

    Hi
    I have exactly the same problem in my web
    https://bird.comze.com/

    I cant solve the problem because i do not know what is causing it.

    Can someone help?

    Regards

    Solved :

    Just add to functions

    if( !is_admin()){
    wp_deregister_script('jquery');
    wp_register_script('jquery', ("https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"), false, '1.10.2');
    wp_enqueue_script('jquery');
    Thread Starter jorgk3

    (@jorgk3)

    Sorry, I can’t see the fix on the page. Did you implement a different fix?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Music playing twice, pause button not working’ is closed to new replies.