This plug-in let you transform any mp3 file uploaded inside a post into an essential small HTML5 audio player with:
- volume control
- seeking control
- title bar
- rewind button
- mute button
- play button
Watch this video to learn how to customize your player using the on line Skin Maker too:
From version 1.5.8 the CSS has been changed; for all the one how have customized the skin they need to recreate their skin from here.
- demo: http://pupunzi.com/mb.components/mb.miniAudioPlayer/demo/demo.html
- video: http://youtu.be/B8Dr4aUNGgo
- pupunzi blog: http://pupunzi.open-lab.com
- pupunzi site: http://pupunzi.com
From version 1.4.x you can customize your player appearance by using the on-line miniAudioPlayer Skin Editor.
If you are using others HTML5 audio plugins (like Haiku) there could be conflicts with mb.miniAudioPlayer. You should deactivete the others befor using it.
Other WP plugins:
- wp-YTPlayer. A Chromeless video player to play your Youtube videos as background of any WP page or post.
How it works:
- Activate the mb.miniAudioPlayer plugin via the WP plugin panel;
- Edit a post or a page, click on the Upload/Insert media link and choose an mp3 file;
- place it into the post wherever you want to show the player.
- save the post and browse it; the player will show instead of the link at the file.
to change the player default settings go to the mb.miniAudioPlayer settings panel (you can find it under the “settings” section of the WP backend).
- @ width = (int) the width in pixel of the player once opened.
- @ skin = the color of the player interface (black, blue, orange, red, gray and green).
- @ volume = (int) the initial volume of the player.
- @ showVolumeLevel = a boolean to show or hide the volume control.
- @ showTime = a boolean to show or hide the time counter.
- @ showRew = a boolean to show or hide the rewind control.
- @ autoPlay = (available only for the TinyMCE editor plugin) a boolean to set in play the player once the page is loaded.
- @ downloadable = a boolean to show the download button next to the player.
- @ excluded = a string containing the CSS class for audio links that should not be converted into player.
Ubuntu Chromium issue
Due to some codecs missing in the default Ubuntu Chromium install the player will not work. This problem can be resolved by simply installing that codecs via console:
sudo apt-get-install chromium-codecs-ffmpeg-extra
After that your player should work fine.
Extract the zip file and upload the contents to the wp-content/plugins/ directory of your WordPress® installation, and then activate the plugin from the plugins page.
You have to check the “Activate the player customizer in the post editor” to make it available in the post editor.
Be sure that once you inserted the file you set the “Attachment Display Settings -> Link” to “media file” in the media file window.
I installed the plugin and now I can’t display the post editor in “visual” mode anymore
This is probably due to insufficient user permissions on your server that cause an error loading the TinyMCE mb.miniAudioPlayer component. You should try download the component locally on your computer, unzip it and upload the folder via FTP in the remote plugins folder.
Probably there’s a conflict with some other installed plugin or even with the theme you are using.
Try first deactivating all the other plugins; if it works then reactivate them one by one to find out which is getting in conflict; if it doesn’t work then there’s a conflict with your theme.
The player is working fine but it display differently from the examples you gave
The appearance of the player is all defined in the “miniplayer.css” file located in the “css” folder of the plugin root. You maybe have some CSS classes that are overwriting the plugin ones.
You can inspect the player using the developer tools within the browser to find out which class is overwritten and fix the problem changing the theme css.
It doesn’t work on Firefox and neither on IE, what is the problem?
On both those browsers the player falls back to the Flash® solution instead of the standard HTML5; That because FF doesn’t accept mp3 files natively and IE is a mess :-).
So if the player doesn’t work on them probably is your Flash plugin that is not update or is not working correctly.
It doesn’t work on Ubuntu Chromium
Due to some codecs missing in the default Ubuntu Chromium install the player will not work. This problem can be resolved by simply by installing that codecs via console:
sudo apt-get-install chromium-codecs-ffmpeg-extra.
After that your player should work fine.
The download button is intentionally removed on touch devices as it is impossible to download the file on that devices.
यह खुला स्रोत सॉफ्टवेयर है। अनुगामी लोगो ने इस प्लगइन के लिए योगदान दिया है।योगदानकर्ता
“mb.miniAudioPlayer – an HTML5 audio player for your mp3 files” has been translated into 1 locale. Thank you to the translators for their contributions.
Interested in development?
- Excluded [download] anchors to be rendered as player.
- Bugfix: With the latest Worpress update the default gutenberg audio block was not rendered anymore in the right way.
- Bugfix: Removed the jQuery.browser object.
- New feature: Now the playlist plays the next track automatically.
- Bugfix: fixed a path problem to map_short_code.js that was blocking the editor.
- New update and security issue fixed: There was a potential security issue within the download method that has been fixed using the HTML5 download tag instead of streaming the file via PHP. Now the plugin can replace the default WordPress 5 (Gutenberg) audio player.
- Bug fix: There was a bug with the settings page, the HTML5 download option was always set to true.
- Bug fix: There was a bug with the download button if set to HTML5 download.
- Updates: Introduced the “Use default browser download capabilities” option to let the audio file be downloaded usung the default browser HTML5 capabilities without using the “fopen” or the “curlLib” PHP module.
- Updates: map_download: the download process should be more robust.
- Updates: Worked on the editor button to better perform the insert action and prevent the use of it if on text modality.
- Bug fix: removed a out-print debug from the post/page editor.
- Bug fix: Prevent “fatal error” if the PHP installed version is prior than 5.4.0.
- Bug fix: changed the player editor popup behavior in the post/page editor for an issue with WordPress 4.8.
- Bug fix: Player broke on v 1.8.1 due to filename case sensitivity.
- Bug fix: the jQuery.mbMiniPlayer.actualPlayer.mb_miniPlayer_stop() did not fire if the anchor didn’t have the ID.
- Bug fix: Add a patch to jPlayer to solve a bug if on Android devices that was blocking the correct player behavior.
- Bug fix: after the first download all the other failed till the page reload.
- Bug fix: moved session_start() to the plugin init to solve the “Cannot send session cookie – headers already sent by …” issue.
- Bug fix: If session was already started the download didn’t fire correctly.
- Improved security on download (map_download.php) checking the same origin referral for the download request.
- Bug fix: With the last WordPress update the default audio player was not replaced by the miniAudioPlayer.
- Bug fix: In map_download.php removed space from audio file path.
- Add the text-domain declaration for the translate.wordpress.org.
- Bug fix: Fixed a bug that was preventing the correct behavior if used to replace the default WordPress media player.
- Bug fix: Solved a bug introduced with the last 1.7.0 release that was preventing the TinyMCE editor to work properly.
- New option: You can now choose if the speaker icon in the player should mute/unmute or just play the audio.
- New option: If the “Replace the default WP media player” is checked you can now choose to show or hide the filename inside the player.
- Feature: On mobile devices clicking on the mute button just play the audio (on mobile devices you can’t mute other than from the hardware control).
- Bug fix: if the file url contain parameters the download failed.
- Bug fix: if used to replace the default WP player with a playlist the Author and the title where not updated.
- Bug fix: if the component was replacing the default WordPress embed player the settings defined in the settings page were not applied.
- Feature: Now you can specify if miniAudioPlayer should work also with the default WordPress short-code. If this option (Replace the default WordPress embed media player) is checked the player will work also when the audio file is inserted using the “embed media player” option in the “add media” window. It will work also for play-lists as the default WordPress media player does.
- bugfix: The “Apply to any .mp3 file link” option were not correctly applied.
- feature: Added a new option that let choose if apply the component to all the links to audio files or if activate the player manually from the page/post editor component window.
- Bug fix: fixed a bug that affected the correct customization behavior in certain cases.
- feature: The customization window now adapt its size to the window size.
- Bug fix: fixed a bug that was preventing the download on IE.
- Updated to jPlayer 2.9.2.
- fixed a css bug.
- fixed a bug on the TinyMCE customize window.
- fixed a security issue within the map_download.php page; now you can’t call that page other than from the download button.
- Bug fix: Solved a Chrome issue where if many player where instanced in a single page it stops working after an arbitrary numbers of playing players.
- MAJOR UPDATES: You can now generate a custom skin from the skinMaker tool, save it as CSS file and upload it from the settings window.
- The from the skinMaker tool you can now manage also the size of the player.
- added the uninstall.php to clean uo the database when the plug-in is removed.
- MAJOR UPDATES: From this version the player is built only using DIV elements. The CSS has been changed and if you customized your skin you need to regenerate it!.
- Feature: better responsiveness on devices.
- Feature: Customizing the skin you can now increase the size of the player appearance.
- Update: Updated the miniAudioPlayer-admin.php using the WordPress “Settings API”.
- New feature: Added support for Google Analytic Universal event tracking; before this update the “play” and the “map_download” events were tracked only if the standard version of GA was present on the page; now they work also if the latest Universal GA is installed.
- Bug fix: if the “animate” option was set to false, the editor customizer window throw an error preventing the correct behavior.
- New feature: the plug-in customizer editor will open even if the URL is not explicitally pointing to an MP3 file.
- Major update: Updated to solve issue compatibilities with WP 3.9 – Needed if you are updating your WordPress to the latest 3.9 release.
- Feature: Updated jPlayer to the latest version.
- Feature: Added the GA track event also for downloads.
- Feature: Updated to the latest jquery.mb.CSSAnimate component.
- bugFix: if the WordPress instance was running jQuery 1.8– mobile devices where not detected.
- bugFix: Fixed (Again) a bug introduced in the 1.4.8 update that prevent the player to work on IE browser.
- First release