Mini Flash Music Player, Song Playlists |
Mini Flash Music Player, Song Playlists |
![]()
Post
#1
|
|
dSlice™ ![]() ![]() Group: Member Posts: 19 Joined: Feb 2004 Member No: 2,814 ![]() |
Alright many of you have been given out code for playlist on your MySpace...but people were complaing that you couldn't choose the songs you want to listen to. So this is for those people...
First things first, you need to download the player and playlist file (click here~9kb) The file is in .zip format, which requires IZArc to extract! Once you've downloaded and extracted the file, you will have two files, player.swf and playlist.xml. Open up playlist.xml in notepad, or whatever text editor you use. Edit the lines that appear like this: <song path="Song Link Here.mp3" title="Artist - Track" /> By putting the EXACT URL to your mp3 file in the "path" attribute, and then the Artist and Track name in the "title" attribute. Of course if you have more songs than there are lines in the xml file, you can add as many more as you like! Now upload your completed playlist.xml file and player.swf to your webhost of choice (like UploadHut.com), once uploaded, use the following code to embed it on your page: <embed src="http://pathto/player.swf" menu="false" quality="high" bgcolor="EEEEEE" width="300" height="320" name="index" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="playList=http://pathto/playlist.xml&ShowPlaylist=1&ShowEQ=1&firstTrack=1&initVol=50" wmode="transparent" /> The values in bold need to be changed to your specific requirements. src - Set this to the EXACT URL of your player.swf file. bgcolor - Set this to any 6 digit hex code to change the colour of the player. playList - set this to the EXACT URL of your playlist.xml file. ShowPlaylist - This controls whether the playlist is visible upon startup. 1 for yes, 0 for no. ShowEQ - This controls whether the equilizer is visible on startup. 1 for yes, 0 for no. firstTrack - Sets which track should be played initially. Setting 0 will turn autostart off. initVol - Sets the initial volume of the player. 0 (mute) to 100 (maximum) And that's that! You could even extend this further by putting the player in a DIV container, and absolutely positioning it anywhere on your page! |
|
|
![]() |
![]()
Post
#2
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 359 Joined: Feb 2005 Member No: 101,275 ![]() |
It would be nice of you to actually leave credit for the site that created this code, instead of just simply copy//pasteing it
![]() http://www.mygen.co.uk/ and what do you mean you need Izarc to unzip a zip file, hmm WINZIP the people who only made zip files, im sure that program can unzip things, makes sense ![]() |
|
|
![]()
Post
#3
|
|
![]() Senior Member ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 604 Joined: Jun 2004 Member No: 21,133 ![]() |
QUOTE(Chaos Bliss @ May 30 2005, 7:28 PM) It would be nice of you to actually leave credit for the site that created this code, instead of just simply copy//pasteing it ![]() http://www.mygen.co.uk/ and what do you mean you need Izarc to unzip a zip file, hmm WINZIP the people who only made zip files, im sure that program can unzip things, makes sense ![]() Some one hacked the site ![]() ![]() edit:// There is something wrong .. I dunno if it's just me or the myspace won't show up the player. The only thing that would show up is the picture of the site which I used to upload my file Click here to see my profile and when I came back to check the code.. and changed into an iFrame ![]() |
|
|
![]() ![]() |