Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter NickGreen

    (@nickirongate)

    Ok guys, I fixed this issue. First, I wrote a script to clear the media and destroy the instance of the player:

    function destroyJplayerInstances() {
      $("[id^="mp3"]").jPlayer( "clearMedia" );
      $("[id^="mp3"]").jPlayer( "destroy" );
    }

    Then, in my ajax setup, I run that script every time before the ajax sends:

    $.ajaxSetup({
          cache:false,
          beforeSend: destroyJplayerInstances();
        });

    I hope this helps someone in the future. Peace out!

    Thread Starter NickGreen

    (@nickirongate)

    Ok, I lied, this isn’t actually working for me. Sorry about the premature solution. Any ideas?

    The author says it simply doesn’t work in themes with ajax. It did work for me up to v1.8.12 then it broke. Looks like we are stuck at v1.8.12.

    That’s a shame because it’s the best, most customisable player out there.

    http://debono.com.au

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Player not loading correctly with AJAX’ is closed to new replies.