We'll create fresh WordPress site with Audio Playlist Manager with Autoresume installed. You have 20 minutes to test the plugin after that site we'll be deleted.
Audio Playlist Manager with autoresume has cool features for embedding mp3 audio into posts or templates. This plugin has the option to chose ‘autoresume’ for continuous playback across pageloads, with only a pause between pages.
Features include:
Embed single/multiple audio file(s) on a post page or template
Embed single/multiple audio playlist(s) on a post page or template
Build your own XSPF compatible player and link our XML to it
Continuous playback option
Boutell XSPF player is the default flash player
There are customizable short code that can be pasted into any page / post, as well as code to embed into your template.
If you are looking to embed a playlist on to your page, you can use the following short code.
using the short code [ti_audio]
by itself will attempt to play playlist #1, which may or may not exist. It’s always preferable to use a named Playlist when calling the player or to set the id.
Plays playlist with name “Name of Playlist” (case sensitive)
[ti_audio name="Name of Playlist"]
Plays playlist #1
[ti_audio id="1"]
Uses the swf located at this location, rather than the default.
Your root folder must contain a crossdomain.xml file allowing
another domain’s swf access to XML data. Also passed is the
name of the player and the swf’s width and height values.
[ti_audio skin="/player/xspf_player_custom.swf" width="260" height="315"]
In addition, you can also change the following attributes of the player (defaults shown):
Sets player to begin playing on load. Default is off, 0.
autoplay="0"
Sets player for continuous playback, fresh page-load will only pause the player for moments (given the player resides in a common place sucha as sidebar or footer). Default is off, 0.
autoresume="0"
Sets player to begin loading assets before the user clicks anything. Default is on, 1.
autoload="1"
Sets player to repeat once it reaches the end of the playlist. Default is off, 0.
repeat="0"
URL of the XSPF swf to use for display. Uses default player unless specified.
skin="xspf_player.swf"
Set if the skin attribute points to a SWF of different dimensions.
width="400"
height="170"
Set default volume level (in percent)
volume="50"
Set the playlist to play in random order
randomize="1"
Single Audio Track:
If you are looking to embed a single file, use the following short code.
Plays audio file with id of 1
[ti_audio media='201']
Plays single audio file, set to auto play, repeat and volume at 60%
[ti_audio media='201' autoplay="1" repeat="1" volume="60"]
Templates:
You can embed the audio player into any WordPress template. Much like the short code examples above, you can customize the values within your own templates. Here are all of the fields that you can specify should you choose. Omitting a field will set it to the plugin?s default values.
<? if (function_exists ("ti_apm_print_player")) {
print ti_apm_print_player (array(
"name" => "Name of Playlist",
"skin" => "/player/xspf_player_custom.swf",
"autoplay" => "0",
"repeat" => "0",
"width" => "400",
"height" => "170"
));
} ?>
To play a single audio file within your template, specify the following:
<? if (function_exists ("ti_apm_print_player")) {
ti_apm_print_player (array(
"media" => "3"
));
} ?>
Inspiration and the story Audio Playlist Manager with Autoresume page.