WordPress.org

Ready to get started?Download WordPress

Forums

mb.miniAudioPlayer - an HTML5 audio player for your mp3 files
[resolved] Use within php or as a shortcode (7 posts)

  1. energykick
    Member
    Posted 1 year ago #

    Hi,

    Is there a way to insert this player as a shortcode or using php so I can script audio file names inside and also add into a sidebar widget?

    Thanks
    Rob

    http://wordpress.org/extend/plugins/wp-miniaudioplayer/

  2. pupunzi
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,
    This component will render any link to .mp3 files as a player wherever the link is written.
    So, instead of a short code, you can simply create an anchor tag that links to the mp3 file. You can pass any property to the player via metadata in the "class" attribute:

    <a id="m1" class="audio {autoPlay:true, inLine:true}" href="audio.mp3">Airport Gate (Boarding)</a>

    Bye,
    M

  3. satorimethod
    Member
    Posted 11 months ago #

    Hi M,

    You audio player plugin is so amazing - we LOVE it :-) Thank you for creating it!!

    We've tried a ton of WP audio players - but for one reason or another they don't work with the multitude of devices and browsers - yours has come the closest!

    Can we ask you a favor please? We are having a little trouble with just one thing.

    SCENARIO:
    We have several players installed on a page... and with this set up your player is working great for on all our devices - iPhone, Ipad, Android phone - also works great in Chrome and Safari on the Mac and PC... BUT we are having trouble getting more than one of the players at a time working in Firefox and Internet Explorer (on both MAC and PC)

    We've read your FAQs -- we're not having an issue with a flash plugin (as we can get one player to work fine on a page) - it only happens when there are 2 or more.

    Do you have a solution that we could try - we'd be REALLY grateful.

    Here are our examples to test in FF and IE if you would be so kind:

    http://satorimethodacademy.com/uncategorized/mb-audio-player-test-a/
    CONTROL TEST: (works fine in firefox)
    http://satorimethodacademy.com/uncategorized/mb-audio-player-test-b/

    Thank you so much!

    Tristan

  4. pupunzi
    Member
    Plugin Author

    Posted 11 months ago #

    Hi Tristan,
    the two links you gave are pointing to a secured page I can't access.
    Anyway the two browsers mentioned are both falling back to the flash player to render the mp3 file while the others are rendering the audio via the native HTML5 AUDIO tag.
    What is strange is that on my demo page (http://pupunzi.com/mb.components/mb.miniAudioPlayer/demo/demo.html) there are 5 players and they are working fine on all the browsers.
    Can you test this page and see if it works also for you?

    Bye,
    Matteo

  5. satorimethod
    Member
    Posted 10 months ago #

    Ops... sorry about that Matteo...

    Those pages are open now :-)

    http://satorimethodacademy.com/uncategorized/mb-audio-player-test-a/

    Yes, all five players on your site are working great for us in Firefox.

    Strange.

    Thanks for the follow up!

    Tristan

  6. pupunzi
    Member
    Plugin Author

    Posted 10 months ago #

    Hi,
    Both the players have the same ID: "mp_mbmaplayer_1369169101141".
    I don't know how you are including them but they should have different ID to work fine.

    Bye,
    Matteo

  7. satorimethod
    Member
    Posted 10 months ago #

    Thanks Matteo! That fixed it in the browsers :-)

    I just made up a different ID... i'm assuming that was cool... as they are now working and I didn't see how to manufacture a new ID?

    You've made a great player.

    Thank you for sharing it with everyone!

    Tristan

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.