WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. troskater
    Member
    Posted 1 year 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:
    jQuery(elem).parent().find('.wpaudio-position').text(time_string);

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

    http://wordpress.org/extend/plugins/wpaudio-mp3-player/

  2. nelbs
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 11 months 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

About this Topic