1 Many aspects of the appearance and behaviour of the mp3 player can be customised,
\r
2 these custom values are set by passing variables to the flash movie using "flashvars".
\r
3 flashvars are supplied to the movie using
\r
5 <param name="flashvars" value="some value">
\r
7 alongside the other param tags, and with an extra attribute in the embed tag
\r
9 flashvars="some value"
\r
11 the "some value" part is a list of urlencoded variables
\r
13 &variableName=value&anotherVariable=anotherValue&
\r
15 +--------------------------------------------------------------------------------------------------------------------+
\r
16 | Variable Name | Possible Values | What it does |
\r
17 |--------------------------------------------------------------------------------------------------------------------|
\r
18 | bgColour | a colour in the format RRGGBB where | sets the background colour of the player. |
\r
19 | | RR, GG and BB are hexadecimal values | |
\r
20 | | (00 to FF) representing the Red, Green | |
\r
21 | | and Blue parts of the colour. eg | |
\r
22 | | ffffff is white, 000000 is black, | |
\r
23 | | ff9900 is orange, 000033 is a dark blue. | |
\r
24 | | the default colour is black. | |
\r
25 |--------------------------------------------------------------------------------------------------------------------|
\r
26 | btnColour | the same as bgColour, the default colour | sets the colour of the play and pause buttons. |
\r
28 |--------------------------------------------------------------------------------------------------------------------|
\r
29 | btnBorderColour | the same as bgColour, the default colour | the colour of the border around the buttons. |
\r
30 | | is grey. | make this the same as btnColour if you don't want |
\r
32 |--------------------------------------------------------------------------------------------------------------------|
\r
33 | iconColour | the same as bgColour, the default colour | the colour of the play/pause icons. |
\r
35 |--------------------------------------------------------------------------------------------------------------------|
\r
36 | iconOverColour | the same as bgColour, the default colour | the colour of the play/pause icons when the mouse |
\r
37 | | is green. | is over the button. |
\r
38 |--------------------------------------------------------------------------------------------------------------------|
\r
39 | handleColour | the same as bgColour, the default colour | the colour of the handles on the playback slider, |
\r
40 | | is white. | volume and pan controls. |
\r
41 |--------------------------------------------------------------------------------------------------------------------|
\r
42 | trackColour | the same as bgColour, the default colour | the colour of the track for the playback slider, |
\r
43 | | is grey. | volume and pan controls. |
\r
44 |--------------------------------------------------------------------------------------------------------------------|
\r
45 | loaderColour | the same as bgColour, the default colour | the colour of the loading bar. |
\r
47 |--------------------------------------------------------------------------------------------------------------------|
\r
48 | font | a name of a font, eg verdana. the | the font used in the movie. |
\r
49 | | default value is Trebuchet MS. | |
\r
50 |--------------------------------------------------------------------------------------------------------------------|
\r
51 | fontColour | the same as bgColour, the default colour | the colour of the text. |
\r
53 |--------------------------------------------------------------------------------------------------------------------|
\r
54 | waitForPlay | yes or no, the default is no. | should the player wait until the play button is |
\r
55 | | | pressed before starting to download the file? |
\r
56 |--------------------------------------------------------------------------------------------------------------------|
\r
57 | autoPlay | yes or no, the default is yes. | will the player wait until the play button is |
\r
58 | | | pressed before starting to play the file? if |
\r
59 |--------------------------------------------------------------------------------------------------------------------|
\r
60 | buffer | a value in seconds, the default is 20. | how many seconds of the file should be buffered |
\r
61 | | | before playback starts? |
\r
62 |--------------------------------------------------------------------------------------------------------------------|
\r
63 | volText | a string (could this come from the | the text used in the player to label the volume |
\r
64 | | language pack?) the default is "Vol". | control. |
\r
65 |--------------------------------------------------------------------------------------------------------------------|
\r
66 | panText | the same as volText. the default is "Pan". | the text used in the player to label the pan |
\r
68 +--------------------------------------------------------------------------------------------------------------------+
\r
71 a brightly coloured example ;)
\r
73 <param name="flashvars" value="&bgColour=ffff00&btnColour=00ff00&&btnBorderColour=ff9900iconColour=000000&iconOverColour=ff00ff&handleColour=ff00ff&trackColour=000000&loaderColour=ff9900&font=verdana&fontColour=ff0000&waitForPlay=no&dontAutoPlay=yes&buffer=30&">
\r
75 the content of the value attribute would need to be repeated and included as the value of
\r
76 the flashvars attribute in the embed tag.
\r
81 the song information comes from 2 sources, initally the player displays the filename (minus the file extension)
\r
82 as the title, once the file is fully loaded it checks the id3 data in the mp3 file for the songname, artist and year
\r
83 and displays this information instead of the filename.
\r
86 Andy Walker (www.altoncollege.ac.uk)
\r