Support » Plugin: WPaudio MP3 Player » [Plugin: WPaudio MP3 Player] Multiple Player Bug Fix

  • Resolved troskater


    Hi, I had this issue and I noticed others did as well when multiple instanced of WPaudio were included on the same page.

    When you play an item to completion, then play another item, the completed item restarts and plays as well.

    I figured out this was because the ‘wpaudio-playing’ class is not removed from the player when it finishes playing the file.

    Here is the fix, go to line 223 of wpaudio.min.js and you’ll see:

    After this, but before the closing bracket, add:

    // Fix to remove "wpaudio-playing" class when end is reached
    if(info.position == info.duration) jQuery(elem).removeClass('wpaudio-playing');

Viewing 3 replies - 1 through 3 (of 3 total)
  • Good spot – thanks for the tip.

    I also noticed this fixed another little bug in the setup I had (WP 3.4.1, WPAudio 3.1, Firefox 15.0) whereby once a song completed it would not start playing again unless either you played another song first, or manually moved the progress bar back to the start. Until I applied the update above, simply clicking the ‘play’ button again for the same song didn’t do anything.

    This is a great little plugin. It’s a shame the developer isn’t actively continuing with it.

    troskater – you are a wonderful person. THANK YOU SO MUCH for this fix. I was developing a site using this really cool audio player (such a pity its no longer supported) and when testing the site was super bummed to learn of this bug. A little bit of searching on the WP forum and I found your post and solution.

    You saved me! You = THE MAN.

    The site I’m building

    Thanks a lot, the fix is working great !

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WPaudio MP3 Player] Multiple Player Bug Fix’ is closed to new replies.