Audio Player Wordpress plugin
If you wish to make a donation to the author of the Audio Player plugin (that’s me), use the Paypal button.
Audio Player 2.0 beta is now available!
Table of contents
If you want to use this player on a non-WordPress site, Mindy McAdams has written a very detailed tutorial here.
Important note: This plugin only works in posts and pages. It does NOT work in headers, sidebars or footers and I do not provide support for placing it there.
Other important note: This plugin only plays MP3 files. This is a limitation of the Adobe Flash Player.
Contents Usage
Once installed, this plugin allows you to insert mp3 audio files into your posts and pages. Use the following syntax:
[audio:name_of_mp3_file.mp3]
This code will insert a flash player and will load the file named name_of_mp3_file.mp3 located in your audio files folder. You can store your audio files anywhere in the web root as long as you update the path in the plugin’s options panel. The default is /audio.
You can also use absolute paths to link to files on other servers:
[audio:http://www.somedomain.com/path/to/name_of_mp3_file.mp3]
Audio Player can also play a sequence of audio clips. Use commas to separate the files:
[audio:name_of_mp3_file1.mp3,name_of_mp3_file2.mp3,name_of_mp3_file3.mp3#093;
You can also pre-append and post-append a clip to all your players. Explained in the Podcasting section.
Contents Examples
Default colour scheme
Custom colour scheme
Contents Podcasting
If you are using the player for a podcasting blog, Audio Player has special options just for you.
Enclosures
If you are unsure what an enclosure is, read the definition on Wikipedia. You have 3 options:
[audio] syntax but you must use absolute URLs:
e.g. http://www.somedomain.com/path/to/name_of_mp3_file.mp3
WordPress will automatically detect the file and set the relevant enclosure option for you.
Pre/Post appended clips
You may wish to pre-append or post-append audio clips into your players. To do this, enter the full urls in the relevant section of the options panel. The pre-appended audio will be played before the main audio, and the post-appended will come after. A typical podcasting use-case for this feature is adding a sponsorship message or simple instructions that help casual listeners become subscribers. This will apply to all audio players on your site. Your chosen audio clips should be substantially shorter than your main feature.
Contents RSS Feeds
You have a choice over what to show in your RSS feed:
Go to the options panel to set these options.
Contents The “chipmunk” effect
The Macromedia Flash player has a problem playing files that are encoded at a rate that is not a multiple of 11.025 kHz. This effect is sometimes called the “chipmunk†effect: the file is played at double speed. To avoid this, encode MP3s at 11.025 kHz 22.050 kHz or 44.100 kHz.
Contents Colour scheme
The entire player colour scheme is customisable. Use the Audio Player options panel in your WP admin to set the colour scheme of your player. You can also change the colours per player instance by using runtime options. Here are the colours that you can set:
![]()
Contents Runtime options
Use these if you want to use a different colour scheme for a particular player instance. You can also make the player open automatically or loop the loaded clip. You can pass a number of options to a player instance. To do this use the following syntax:
[audio:name_of_mp3_file.mp3|option1=value|option2=value]
Example:
[audio:name_of_mp3_file.mp3|autostart=yes|bgcolor=0x000000]
This will set the main background colour of the player to black and automatically start the player when the page loads.
Contents Installation
You should end up with this folder structure:
I recommend an
audio folder in the root of your blog so it doesn’t interfere with your WP install. If you wish to use another folder, remember to change the audio files directory option on your options panel. Activate the plugin in your WP admin Go to Options > Audio Player in the WP adminHere, you can choose how you want to use Audio Player and also set the colours to match your site’s design.
Contents Upgrading from 0.x to 1.x
Once installed, the old player is overwritten with the new one and all colour options should be transfered to the new scheme. Some adjusting to the slider and loader bar colours might be necessary.
Contents Upgrade wizard
Audio Player comes with an upgrade wizard. On the options panel, you can find out if a new update is available by clicking the Check for updates button. If an update is available, you will be prompted to open the upgrade wizard. Simply click Upgrade and the wizard will download the latest version and install it for you. Note: The upgrade wizard relies on some PHP functionality that is not available on all server configurations. You host may have disabled these features, in which case the upgrade wizard will be disabled.
Contents Change log
1.2.3 (4 September 2006)
1.2.2 (14 February 2006)
<a> tags1.2.1 (12 February 2006)
<a> tags)1.2 (07 February 2006)
1.0.1 (31 December 2005)
1.0 (26 December 2005)
0.7.1 beta (29 October 2005)
0.7 beta (24 October 2005)
0.6 beta (23 October 2005)
0.5 beta (19 October 2005)
/audio folder Better handling of paths and URIs Added support for linking to external files
July 5th, 2008 at 11:27 am
Hi! I have installed the player and got it to work and all, but when the songs play, they fade in and out, how do I fix this? I’m using the newest 2.0
Thanks
#2857: andres Says:July 4th, 2008 at 10:28 pm
hello there… is there a limit to the length of a single mp3? i’ve posted a 90 minute mp3 of a podcast on my site, but it appears that the file only plays until minute 82 or so.
http://www.stepwisedj.com/galang
thanks in advance!
#2856: rzrarti Says:July 4th, 2008 at 10:12 pm
Your plug-in doesn’t seem working in FF3. Why could it be?
#2855: jimmyg Says:July 3rd, 2008 at 4:37 pm
Thank you for the thought out response…
1: I hope I can help with a donation soon!
2: I’m going to check out the upgrade. I’m hoping I can upgrade without making changes to a lot of code… Shouldn’t be a problem, hopefully..
3: I’m limiting the page to 10 players right now and it seems to be working perfectly!
footnote: I’m also using the Creative Commons license for all my music - I notice you have a link on your page, too!
http://www.jimmyg.us
#2854: Martin Says:July 3rd, 2008 at 3:43 pm
@jimmyg:
1: Donation are very variable. It usually depends on how quick and helpful I am with support requests
The amounts are usually around the $10 mark. I did get the occasional big donation from big sites like wordpress.com or digg.com but they are very very rare. On the whole, donations more than cover hosting costs for this site (which are very low anyway) and give me a little paypal pocket money for the odd ebay purchase. I also tend to redistribute the donations to other worthy open source projects.
2: JavaScript and Flash ExternalInterface (a system that enables Flash/JavaScript communication). Check version 2.0 beta for a much better implementation: http://wpaudioplayer.com)
3: There isn’t a physical limit to the number of players on one page but simply from a web design and usability point of view, I recommend you limit the number to a maximum of 10-15 per page. There is also a known issue with Firefox on Windows when you have more than 15 Flash players on one page: http://wpaudioplayer.com/support/troubleshooting
#2853: Ben Says:June 30th, 2008 at 10:05 pm
I am having problems with playing files over 6mb. Is there a file limit size to this player? Thanks.
#2852: jimmyg Says:June 28th, 2008 at 4:28 pm
1: It’s great to see all the comments and there are so many people benefitting from your great player… I’m curious, do you get many people to donate? I would like to donate to your cause, but I can’t until I can get my site to start bringing in a little money… I’ve put my site up with the same “contribute” mechanism (My site allows you to download professional original music that is royalty free - so it’s perfect for people creating their own web videos or even people doing commercial videos) and a lot of people will download music, but not many people will even take the time to contribute a dollar. I’m curious what kind of support you’re seeing?
2: What is the trick to get one player to stop playing when another player on the same page starts.
3: Is there a maximum number of players that one should put on a page? i.e. Before you start seeing performance hits on the page? Granted a high end Core 2 Duo probably won’t struggle much, but what about someone on an old P3 or G3, G4? Curious if you have info on that.
Finally: Excellent work you’ve done, I really appreciate everything you’ve done…. -p.s. - feel free to check out the music on the site - at least I can contribute that to your work if it helps…
#2851: Cynosure Says:June 28th, 2008 at 3:20 pm
I found the solution in an old post. I had an error in the code that called the javascript. Everything works fine now. An awesome audio player. Only thing I could ask for is a volume control, but other than that it is great!