Free Flash mp3 Player
STEP 1
Download and uncompress playerSinglePackage.zip.
By downloading this flash music player, you agree to the End-User License Agreement
STEP 2
Open sampleEmbedCode.html in your html editor, copy the embed code provided and paste it into your own html page.
STEP 3
Change the soundPath parameter in the provided embed code to point to your mp3 file of choice.
Change the value in red to suit your needs.
so.addVariable("soundPath", "song.mp3");
NOTE 1: Make sure you upload the playerSingle.swf and swfobject.js to your server. Specify the path to these files if they are not in the same folder as the page in which your music player is embedded.
There are two parameters for the Single Track Flash mp3 Player:
autoPlay
Determines if the mp3 automatically plays when loaded. The two possible values are "yes" and "no".
Change value in red:
so.addVariable("autoPlay", "yes");
soundPath
This is the path to the mp3 file you wish to stream.
Change value in red:
so.addVariable("soundPath", "song.mp3");
This path can be relative or absolute.
Sample ablolute path:
so.addVariable("soundPath", "/files/song.mp3");
In this case the mp3 file would be located at www.site.com/files/song.mp3
Sample relative path:
so.addVariable("soundPath", "song.mp3");
In this case the mp3 file would be located at www.site.com/song.mp3
There are two parameters you can modify to customize the flash music player:
overColor
To customize the color of the player, add the line of code below to your embed code and change the value in red. The color must be an hexadecimal color value.
Change the value in red:
so.addVariable("overColor","#000033")
playerSkin
To change the skin of the player, add the line of code below to your embed code and change the value in red. Try skins 1 to 5 and see wich one you like.
Change the value in red:
so.addVariable("playerSkin","1")
Embed parameters are variables or settings that are included in the flash music player through the embed code. The lines of code below are an example of embed variables.
so.addVariable("autoPlay", "no");
so.addVariable("soundPath", "song.mp3");
It is very important to use a sample rate of 44.1kHz as other sample rates may cause the sound to play slower or faster. 44.1kHz is generally the default setting in most mp3 converters.
You can easily convert audio files into mp3 files with any mp3 encoders on the market. We recommend using MusicMatch, a free encoding software for Windows. For Mac users iTunes is a good option.
The bitrate represents the quality level of the mp3 compression. A higher bitrate means better quality, but adds weight the the mp3 file.
The bitrate you use when compressing your mp3 files depends on your needs, here are some of the common bitrates and their quality levels.
- 16 kbit/s - Minimum (Ideal for voice)
- 32 kbit/s - Intermediate
- 64-96 kbit/s - Recommended
- 128 - 256 kbit/s - Best (CD Quality)
Absolutely, the Single Track Flash mp3 Player is designed to stream mp3 files. The music will start playing as soon as there is enough data loaded to ensure a smooth playback
No, the Single Track Flash mp3 Player is designed to stream single tracks in mp3 format. A Flash Loop Player is available here.
The most common problem when integrating the flash music player is the location of the .swf file on your server. If you have copy/pasted the embed code and you don't see the flash music player, it's simply because the web browser is looking for the swf file at the wrong location. Here is quick checklist for trouble shooting purpose:
| Make sure the playerSingle.swf file is uploaded on your web server and that the path to this file is specified in the embed code provided. |
| Make sure the swfobject.js file is uploaded on your web server and that the path to this file is specified in the embed code provided. |
| Make sure you have at least have Flash Player 7. If not, download it here |
Please send us feedback or questions at customerservice@premiumbeat.com |