MP3 Player - A2
A2 is a lightweight (~6Kb) MP3 player for websites. It is powered by a code generator that makes using the player ridiculously easy.
A2 is also available in the following variations:
- standalone (for use in general HTML pages)
- WordPress plugin
- Flash component (for use in Flash / ActionScript projects)
- Flex component
Use as standalone
Download. Embed just like any .swf file.
The download package includes a documented example that will help you figure it out.
Use as WordPress plugin
Download. Install just like any other WordPress plugin - upload to blog's wp-content/plugins then activate. Optionally configure from Settings -> A2 Options.
Embed the player using the following code in your post:
Optionally use multiple parameters:
[a2 trackURL="example.mp3" color1="0x555555" autoPlay="false"]
NOTE: A2 for WordPress requires WordPress 2.5. Tested up to WordPress 2.8.6.
Use as Flash component
Download. Copy A2.swc (you'll find it in the download package) to your components folder.
In ActionScript use:
import com.flashstall.controls.A2; var a2:A2 = new A2(); a2.trackURL = "example.mp3"; addChild(a2);
API / Properties
These are the properties you can use to customize the appearance and the behavior of the player. Feel free to play with them in the property explorer.
|trackURL||the URL path to the .mp3 file to be played (required)|
|color1||the color of all elements except playhead (optional; default: 0x3399cc)|
|color2||the color of the playhead (optional; default: 0xFF6666)|
|autoPlay||if set to "true" the track will start playing once the player is loaded in the page (optional; default: false)|
|volume||the default volume. possible values: 0, 1, 2, 3 (optional; default: 2)|
Here are some notes on the table.
To add a comment, please log in.