WordPress.org

Ready to get started?Download WordPress

Forums

MediaElement.js - HTML5 Video & Audio Player
duplicate players showing (9 posts)

  1. eddierosenthal
    Member
    Posted 1 year ago #

    I'm seeing two players for the one song i am using as source, one below the other. I am not connected to jetpack. I have one other audio player plugin - uber audio. I have tried both syntaxes for the mp3 file i am trying to play.
    audio src= and audio mejsaudio src . I am using the shortcode in a text widget in a premium plugin.
    any suggestions?

    http://wordpress.org/extend/plugins/media-element-html5-video-and-audio-player/

  2. jhenry1014
    Member
    Posted 1 year ago #

    I'm having the same exact issue. I'm only using the correct shortcode once...but the embed shows up twice. One is functional and the other is not.

    Here's the short code (where 'sample' is the URL):
    [mejsaudio src="sample.mp3"]

    Does anyone have a solution?

    Thanks.

  3. jhenry1014
    Member
    Posted 1 year ago #

    Hi Eddie,

    I was actually experimenting a little more and found a solution.

    So instead of what is up on the site for audio players:
    [mejsaudio src="sample.mp3"]

    I used this modified:
    [mejsaudio mp3="sample.mp3"]

    The key is not using 'src' - use the specific format of the file.

    Good luck,
    Jon

  4. karizmuh
    Member
    Posted 1 year ago #

    Duplicate players are most likely a cause of a plugin conflict. Deactivate your plugins, then reactivate them one at a time while refreshing the page with the duplicate players after each plugin activation. You should then find the culprit.

    For me the conflict was with Shortcodes Ultimate v. 3.95

    Deets:

    • WordPress Build - 3.5.1
    • ME.js version - 2.10.3
  5. akyusa01
    Member
    Posted 1 year ago #

    I'm was also having the same problem with duplicate audio players. I actually found my theme was using the remove_filter('the_content', 'wpautop'); and that is what was causing the problem.

    Hope that helps anyone looking.

  6. johnnyp14
    Member
    Posted 1 year ago #

    I'm getting it with FLV files.

  7. dddwordpress
    Member
    Posted 1 year ago #

    So akyusa01, what did you do to resolve. Remove the code?

  8. akyusa01
    Member
    Posted 1 year ago #

    I went to my theme's functions.php and found this: remove_filter('the_content', 'wpautop'); or anything that has wpautop, and deleted it. I had some spacing issues I needed to correct with CSS on the p tags/shortcodes etc, but the duplicate audio player issue was no more.

  9. dddwordpress
    Member
    Posted 1 year ago #

    TX akyusa01 - will try.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic