Documentation

Example

Here is an example of HTML usage of the player:

<object type="application/x-shockwave-flash" data="player_mp3_maxi.swf" width="200" height="20">
     <param name="movie" value="player_mp3_maxi.swf" />
     <param name="FlashVars" value="mp3=test.mp3" />
</object>

Parameters

NameDescription
Parameter nameParameter description
mp3 The URL of the MP3 file to be played.
width Forces the video width.
height Forces the video height.
config The URL of the configuration text file, similar to config_maxi.txt
configxml The URL of the configuration XML file, similar to config_maxi.xml
autoplay 1 to auto-play
autoload 1 to automatically load
loop 1 to loop.
skin The URL of the JPEG file (not progressive) to load
volume The initial volume, between 0 and 200.
showstop 1 to show the STOP button.
showinfo 1 to show the INFO button.
showvolume 1 to show the VOLUME button.
showslider 0 to hide the player bar.
showloading Loading bar display mode : autohide, always or never.
loadingcolor The color of loading bar
bgcolor1 The first color of the background gradient
bgcolor2 The second color of the background gradient
buttoncolor The color of the buttons
buttonovercolor Hover color of buttons
slidercolor1 The first color of the bar gradient
slidercolor2 The second color of the bar gradient
sliderovercolor Hover color of the bar
textcolor The text color.
bgcolor The background color
buttonwidth The buttons width. By default set to 26.
sliderwidth The slider width. By default set to 20.
sliderheight The slider height. By default set to 10.
volumewidth The width of the VOLUME button. By default set to 30.
volumeheight The height of the VOLUME button. By default set to 6
byteslimit If it is a mp3 streaming, the stream will restart at the bytes limit, for prevent overload.

Keyboard shortcuts

KeyDescription
KeyDescription
space Play/Pause
P Play/Pause
S Stop
I Show informations
left 5 seconds backward
right 5 seconds forward
+ Volume up
- Volume down

Javascript

To control the player with Javascript, it is necessary to add an id in the <object> tag, in order to identify the Flash.

These are the available actions:

// PLAY
document.getElementById("myFlash").SetVariable("player:jsPlay", "");

// PAUSE
document.getElementById("myFlash").SetVariable("player:jsPause", "");

// STOP
document.getElementById("myFlash").SetVariable("player:jsStop", "");

// Volume
document.getElementById("myFlash").SetVariable("player:jsVolume", "50");

// Change the url
document.getElementById("myFlash").SetVariable("player:jsUrl", "http://my.mp3");
            

Pub