You can change the appearance add / remove functionality of EP Player by editing the skin images and XML file.
Listed below are the elements available in the skinning language:
<element width="100%" x="0" y="0" height="75" bgcolor="0xFF000000"> </element>
| width / height (optional) |
The width / height of the element. width="75" Sets the width in pixels. width="100%" Sets the width as percentage. |
|---|---|
| x / y (optional) |
The x / y position of the element. x="75" Sets the x position in pixels. x="100%" Sets the x position as percentage. |
| margin (optional) |
The margin of the element in pixels. margin="10" Sets the margin of all sides at once. margin="0 5 15 10" Sets the margin of the sides individually. The order is: top right bottom left. |
| bgcolor (optional) |
The background color of the element. bgcolor="0x0000BB" Sets the color in RGB bgcolor="0x880000BB" Sets the color in ARGB (with alpha). |
<preloader bgcolor="0x000000" x="50%" y="50%" width="50%" height="5"> <element id="INDICATOR" bgcolor="0xFFFFFF" width="100%" height="100%" /> </preloader>
<image src="myimage.png" x="0" y="0" width="100%" height="75" />
| src (required) |
The path to the image. |
|---|---|
| id (optional) |
The function of the image, possible id's are:
BUFFERING PLAYING PAUSED STOPPED ERROR ALBUM_ART LOADING_PLAYLIST ERROR_PLAYLIST The following id's are only available in a playlist_item. ALBUM_ART_PLAYLIST The following id's are only available in a visualization element. FFT SCOPE PEAK WAVE |
<bar src="mybar.png" orientation="h" width="100%" />The image should define the 3 parts seperated by a line. This line must be 1 pixel and in color #FF00FF so the player can detect the parts.
| orientation (required) |
The orientation of the bar, h (horizontal) or v (vertical) |
|---|---|
| id (optional) |
The function of the bar, possible id's are:
The following id's are only available in slider. BACKGROUND HANDLE |
<animation src="myanimation.png" frames="5" speed="0.5" />The image should be a vertical image-strip that contains the animation frames.
| frames (required) |
The total number of frames in the image-strip |
|---|---|
| speed (required) |
The speed of the animation. 0 = slow and 1 = fast |
| id (optional) |
The function of the animation, possible id's are:
BUFFERING PLAYING PAUSED STOPPED ERROR LOADING_PLAYLIST ERROR_PLAYLIST |
<button src="mybutton.png" id="NEXT" />example (toggle):
<button src="mybutton.png" toggle="true" id="PLAY_PAUSE" />The image should be a vertical image-strip that contains the different button states.
| toggle (optional) |
If set to true the button will behave as toggle button |
|---|---|
| id (optional) |
The function of the button, possible id's are:
BUFFERING PREV NEXT PLAY_PAUSE PLAY PAUSE STOP SHUFFLE REPEAT MUTE The following id's are only available in playlist_item. PLAY JSCALL |
<font src="verdana.swf" id="FONT1" />The font is a very simple swf file that has a font embedded.
| src (required) |
The font file |
|---|---|
| id (required) |
The id of the font |
<textfield id="INFO" text="" font="FONT1" font_color="0xFF0000" font_size="28" />
| id (optional) |
The function of the textfield, possible id's are:
TIME The time of the current playing song. CUR_CREATORNAME The creator of the current playing song. CUR_SONGNAME The name of the current playing song. CUR_CREATORNAME_SONGNAME The creator and name of the current playing song. CUR_DURATION The duration of the song. The following id's are only available in playlist_item. DURATION The duration of the song. CREATORNAME The creator of the song. SONGNAME The name of the song. CREATORNAME_SONGNAME The creator and name of the song. |
|---|---|
| text (optional) |
The default text that is displayed on load. |
| font (required) |
The id of the font to be used in this textfield |
| font_color (optional) |
The color of the text |
| font_size (optional) |
The size of the text |
<scrollbox width="300" height="200" scroll_speed="10"> <!-- your elements here --> <scrollbar orientation="v" height="100%" width="10" x="100%"> <bar id="BACKGROUND" height="100%" src="scrollbar-y-bg.png" /> <bar id="HANDLE" src="scrollbar-y-handle.png" /> </scrollbar> </scrollbox>
| scroll_speed (required) |
The scroll speed (amount of pixels scrolled) when using the mouse wheel. For example, you can use this in a scrolling playlist to make steps of exactly one item. |
|---|
<scrollbox width="300" height="200" scroll_speed="10"> <!-- your elements here --> <scrollbar orientation="v" height="100%" width="10" x="100%"> <bar id="BACKGROUND" height="100%" src="scrollbar-y-bg.png" /> <bar id="HANDLE" src="scrollbar-y-handle.png" /> </scrollbar> </scrollbox>
| orientation (required) |
The orientation of the bar, h (horizontal) or v (vertical) |
|---|
<playlist> <!-- your elements here --> </playlist>
<playlist> <playlist_item width="100%" height="39"> <button id="PLAY" toggle="true" src="b-playlist.gif" width="100%" /> <textfield id="CREATORNAME_SONGNAME" width="100%" font="FONT1" /> </playlist_item> </playlist>
<visualization width="300" height="200"> <image src="fft.gif" id="FFT" width="100%" height="100%" /> <image src="scope.gif" id="SCOPE" width="100%" height="100%" /> <image src="peak.gif" id="PEAK" width="100%" height="100%" /> <image src="wave.gif" id="WAVE" width="100%" height="100%" /> </visualization>
<slider id="TRANSPORT" orientation="h" width="100%"> <bar id="BACKGROUND" src="background.gif" /> <bar id="INDICATOR" src="indicator.gif" /> <button id="HANDLE" src="handle.png" /> </slider>
| id (required) |
The function of the slider, possible id's are:
TRANSPORT VOLUME |
|---|---|
| orientation (required) |
The orientation of the bar, h (horizontal) or v (vertical) |