AudioPlay's logo
- website music player
Keep AudioPlay running

by PayPal


AudioPlay version 1.x is currently deprecated. Please use AudioPlay2 -

AudioPlay 1.0.1 has been released. What's new ?
  • some code cleanup and small bugfixes

What the AudioPlay is ?

AudioPlay is a one button Freeware MP3 player based on Flash technology. Simple upload AudioPlay and music file to your web host account ...and that's all :-). Edit configuration (config.xml or put options directly to URL). You could customize background color, loop settings and autostart options. You can customize player's play/stop button by preparing your own button images. If you are looking for demo player for your sound clips or background music player for your website then AudioPlay is ideal for you. Additionally AudioPlay is very lightweight.

AudioPlay could be also used as online music player. Simple put proper information into AudioPlay's generator. Next copy generated code and paste it into your page. Player could be used on your blog, music portfolio, wherever you want.

AudioPlay on


How it looks like ? For example:

Appearance of player is fully customizable.

AudioPlay Online

How to use AudioPlay on my website without uploading it (useful at blogs) ?

URL of mp3 file:
(with http://)
Play stops/pauses
other players:
Repeat:  times (0 - infinite loop)
Player mode: play/pause
Button style:

Copy above code and
paste it on your page.
Thanks for using AudioPlay. Every donation will be welcome and greatly appreciated.



How to add an AudioPlay button to your website ?

Method 1: Use AudioPlay Online Generator.

Method 2: Download AudioPlay and install it on your website.
Upload all extracted files. Prepared archives contains ready to use index.html file with example configuration. If you want use multiple instances of AudioPlay on your web page use 'audioplay.swf?playerid=XXX' instead of 'audioplay.swf' in object/embed tags where XXX is unique identification string. Next change 'playerid' attributes in config.xml file, add some players if necessary. Another way is URL configuration. Here is the list of possible parameters:

  • auto - autostart (yes|no), default no
  • bgcolor - background color (color in hex format, 0xff0000 for red for example), default 0x000000 (black)
  • repeat - how many times music will be played, 0 - infinite loop, default setting
  • file - music file path, default 'music.mp3'
  • buttondir - path to button directory, default 'buttons/classic'
  • mode - select player mode: 'playpause' (default) or 'playstop' (stop button stops streaming)
  • listenstop - stop/pause after clicking play on other player, default 'yes'
  • sendstop - send stop/pause command to other players after play button click, default 'yes'
  • trackid - unique track id (used with 'nexttrack' parameter), default empty
  • nexttrack - which player will start after playing will be finished, default empty
  • usebgcolor - disables transparency if set to 'yes', 'bgcolor' will be used as background, default 'no'
  • fadeindur - alpha fade-in duration, default 0
  • mastervol - master volume (0-100), default 100
  • autostartdelay - autostart after specified number of milliseconds (if autostart feature is enabled) - default 500 (NEW !)
  • playscriptfile - URL of external script which will be executed after play button click (NEW !)
  • pausescriptfile - URL of external script which will be executed after pause button click (NEW !)
  • stopscriptfile - URL of external script which will be executed after stop button click (NEW !)
  • configfile - URL of configuration file (default 'config.xml')
  • einterface - use external interface (yes|no) - default no (NEW !)
  • initbuf - (inititial buffering) music download starts immediately after player loads (yes|no - default: no)(NEW !)
Example: audioplay.swf?auto=yes&bgcolor=0x404040&repeat=1&file=music/file.mp3&buttondir=buttons/mybutton&mode=playstop&listenstop=no&sendstop=yes&mastervol=50

  • Using any above parameters (except 'configfile') cause ignoring 'playerid' parameter and configuration file !

How can I use AudioPlay on my blog ?

AudioPlay generator produces HTML code. Open your post in HTML mode (in WordPress for example there are two tabs for each editing post - Visual and HTML) and paste there generated code.

Can player automatically stop other players after play click ?

Yes. This is default AudioPlay's behavior now. It could be controlled by 'listenstop' and 'sendstop' parameters. Players could be stopped using JavaScript too (see How to control players using JavaScript ?).

How to control players using JavaScript ?

Complete example JavaScript code necessary for controlling players could be found in index.html (tar.gz or zip version of player). Each player has three methods:

  • playMusic() - plays music
  • stopMusic() - stops music (works only in play/stop mode)
  • pauseMusic() - pause music (works only in play/pause mode)
Note: 'einterface' option must be set to 'yes' in player's configuration file or in URL.

Example JavaScript code looks as follows:

function getPlayer(movieName)
if (navigator.appName.indexOf("Microsoft") != -1)
return window[movieName];
return document[movieName];

function play1()
HTML object:

<p>Click<strong onclick="play1()" style="cursor: pointer;"> here </strong>to play player #1.</p>
And object/embed tag:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=",0,0,0" width="30" height="30" id="player1">
<PARAM NAME=movie VALUE="audioplay.swf?playerid=1">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=wmode VALUE="transparent">
<PARAM NAME="allowScriptAccess" value="always" />
<embed wmode="transparent" src="audioplay.swf?playerid=1" quality=high width="30" height="30" name="player1" allowScriptAccess="always"
align="" TYPE="application/x-shockwave-flash"
Note: allowScriptAccess parameter is absolutely necessary!

How can I trigger external scripts (php for example) from AudioPlay ?

There are three useful configuration parameters:

  • playscriptfile - URL of script that will be triggered when play will be pressed
  • stopscriptfile - URL of script that will be triggered when stop will be pressed
  • playscriptfile - URL of script that will be triggered when pause will be pressed
All of above parameters are empty by default. Note: Triggering scripts in another domain requires 'crossdomain.xml' file in script directory. Here is example content of crossdomain.xml file:
<allow-access-from domain="*" />
This will work for all destination domains. Replace "*" with your domain name if you want.

Occasionally player must be clicked twice to play/stop/pause in Firefox.

There is a known bug in Firefox and it is related to 'wmode' parameter in embed tag. You should make small changes in EMBED tag to avoid this problem.

  1. Delete 'wmode=transparent' from EMBED tag.
  2. Change 'bgcolor' parameter in audioplay.swf or 'backgroundColor' tag in config.xml. Change 'bgcolor' parameter in EMBED tag too. It should be the same as your website's backround color.
  3. Add 'usebgcolor=yes' parameter to audioplay.swf or <usebgcolor>yes</usebgcolor> to config.xml
Example EMBED tag after changes (all in one line):
<embed src="
bgcolor=0x507050&mode=playpause&usebgcolor=yes" bgcolor=#507050 quality=high width="30" height="30" align=""
TYPE="application/x-shockwave-flash" pluginspage=""></embed>

I have problems with running AudioPlay on my local computer.

AudioPlay requires some files to start (music file, config.xml, and buttons images). That files are local when you trying to play audioplay.swf from your local computer. Some browsers disallows access to that files by default. It could be changed by setting opportunely options in your web browser, but problem disappears when you upload AudioPlay's files to your web account.

AudioPlay doesn't show up.

Ensure that all files (config.xml, button images, music file) has right paths and permissions.

I want to use larger or smaller buttons than 30x30 pixels, how can I do it?

You could change Flash movie dimensions in object/embed tag to adjust it to dimensions of your buttons images.

What about license, warranty?

Because the program is licensed as Freeware, there is no warranty for the program. The entire risk as to the quality and performance of the program is with you.

Questions, suggestions, bugs ?

Mail to
Hosted by StrangeCube