WPaudio MP3 Player
[resolved] Multiple Player Bug Fix (4 posts)

  1. troskater
    Posted 4 years ago #

    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');


  2. nelbs
    Posted 3 years ago #

    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.

  3. jason103
    Posted 3 years ago #

    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 http://www.planetearthrec.com

  4. tits.net
    Posted 3 years ago #

    Thanks a lot, the fix is working great !

    --- http://www.grillthehill.ch ---

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WPaudio MP3 Player
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic