Other plugins rely on Adobe’s proprietary Flash technology. So does PlayPress, but with the important distinction that it can fall back or to or from standard HTML5 audio, so it works on the iPhone and iPad.
Just put this where you want the audio player to be:
For optimal results, you may specify an additional copy of your audio file in Ogg Vorbis format:
(Obviously, you must replace
http://example.com/bells.mp3 with the URL of whatever audio you want to embed.)
New in version 1.2! Optionally, specify a title and/or artist:
Here’s an example using a single MP3 file:
Here, I’ve included both Ogg Vorbis and MP3 files:
RSS feed subscribers will get a link to download the audio file, and WordPress’s inbuilt mechanisms should take the necessary steps to add “enclosures” to the feed in the manner of a podcast.
/wp-admin/admin.php?page=jetpack, finding the box entitled “Shortcode Embeds”, and clicking “Learn More” and then “Deactivate”.
A file called
htaccess.txt is included in the PlayPress package. If your server supports this (and if you’re not sure, it’s worth a try), copy this file to wherever you’re hosting your audio files (probably
/wp-content/uploads/), and rename it to
Thanks to Martin Laine for creating WordPress Audio Player, which is the
player.swf used in this plugin.
Sean Ooi’s Audio For Everybody, itself inspired by Kroc Camen’s Video for Everybody, was an inspiration. His suggested markup includes references to Windows Media Player and QuickTime – I’ve chosen to avoid that can of worms for now.