Putting Music On Myspace

By using this myspace html code guide, hope that you could put music on your Myspace profile, not just with only 1 song, you could give your viewers also the option to listen the music.

We assume that you already understand about myspace html codes and already hosted your music files online.

First thing you need on putting music on your Myspace html codes is
downloading the player and the playlist file.
Cool Music Lyrics gives this cool music player free to you, download here.
The file is 9kb and on zip file, you need to extract them first to see the file.

Once you've downloaded and extracted the file, you will have two files for playing music your myspace profile page,
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" />

Put the exact url to your favourite mp3 music in the "path"
attribute, and the Artist and Track name in the "title" attribute.

Note : You cannot use the & symbol in the path or title, you should replace
it with &amp;amp;amp; or it will NOT work.

You can add more lines as many as you like in the xml files if you
have more music songs to share to your Myspace visitors.

Note: The songs MUST be valid CBR (Constant BitRate) files, such as : MP3s.

Now upload your completed playlist.xml file and player.swf to your
choosen webhost, the url to your files should look something like this :



Use this hmtl myspace code to out music on Myspace profile page :

<embed src="http://pathto/player.swf" menu="false" quality="high"
width="300" height="320" name="index" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="playList=http://pathto/playlist.xml&ShowPlaylist=1&ShowEQ=1&firstTrack=1&amp;initVol=50" wmode="transparent" border="0" />

Change some values from the myspace code above to your specific requirements :

src - Set this to the EXACT URL of your player.swf file.

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 equalizer 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)

That's it, now you could put your favourite music on Myspace profile
page, you could even extend this further by putting the music player in a DIV container, and absolutely positioning it anywhere on your page!

Join Myspace Forum for more myspace related discussion...