HOW TO MAKE AN MP3 PLAYER(AKA Xspf Player)
... "Slim" Version
Before we get started, I want you to know that I still don't know how to do this completely correctly, so some features may not work.
(but the music will play, that's for sure - I'm not that dumb. XD)
1a. Click
here and decide which player is the best for you.
"Slim" or "extended".
The examples are right after one another.
This tutorial is for the SLIM version, if you want extended, go to the next post.
1b. Download the version you want.
Direct Link |
List of Mirrors
2. Extract the files, and save them ALL to your computer somewhere. You'll need ALL of them. Save these for later.
3. Now it's time to make your playlist.
Here is the help file. Try to make the playlist yourself. If you can't/don't get it, or are a lazy a**, follow the steps below:
a. First of all, if you're on a windows system, can you view extentions? Extentions are things at the end of a filename. For example: filename.mp3 or filename.exe, etc.
If you only see "filename" and not "filename.mp3" or whatever, then go to My Computer (or open any window with files in it).
If you can see extentions, skip this step.
Click Tools -> Options, then the "view" tab.
UNcheck "hide known extention types."
Click "Apply", then "Ok". All the extentions of your files should show up. If you don't like how this looks, you can change it later, but right now you need it.
b. Make a new text file.
Put this in it:
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="0" xmlns = "http://xspf.org/ns/0/">
<trackList>
<track>
If you know anything about bulleted lists, or HTML, this is like a list. From here on out, you will input basically the same thing for everything.
YOU NEED A FILE HOST TO CONTINUE
Photobucket and imageshack don't host audio files. I really can't help you with webhosts, but you need one that will let you directlink/hot link.
Basically file storage. Walagata.com does it but they stopped their free service.
Your best bet is trying tripod, aquafire, and all the other traditional free website hosting and HOPING they don't catch you screw over their bandwidth.
Anyway. Back to the text file.
c. Put
<location> in the next line. Your document should look like this, now:
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="0" xmlns = "http://xspf.org/ns/0/">
<trackList>
<track>
<location>
Location is the URL of your audio file. So it will be something like
http://hostplace.com/folder/folder/filename.mp3 .
Put this, with no spaces, next to location, and then end location. It will end up looking like this:
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="0" xmlns = "http://xspf.org/ns/0/">
<trackList>
<track>
<location>http://hostplace.com/folder/folder/filename.mp3</location>.
d. The next tag is
<image>. Slim version doesn't use images, so either leave them out of your script(text file) all together, or just put this at the end:
<image></image>
Your script should now look like this:
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="0" xmlns = "http://xspf.org/ns/0/">
<trackList>
<track>
<location>http://www.name.com/folder/song.mp3</location>
<image></image>
e. <annotation> is next.
Annotation is what your track name is, basically. An annotation will show up on this part of the player:

Yeah, I can't draw a circle. Shut up.
Anyhow, type what you want to show up. Anything from "Track one" to "Artist - Song" to "IN YOUR FACE b***h, YOU DON'T KNOW THE NAME OF THIS SONG! LOL!" And put that in between the annotation tags.
Your script show now look like this:
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="0" xmlns = "http://xspf.org/ns/0/">
<trackList>
<track>
<location>http://www.name.com/folder/song.mp3</location>
<image></image>
<annotation>Text to be displayed</annotation>
f. Add
</track> to the end.
This is all the information for your one track on your playlist.
To review,
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="0" xmlns = "http://xspf.org/ns/0/">
<trackList>
Goes at the top.
<track>
<location>http://www.name.com/folder/song.mp3</location>
<image></image>
<annotation>Text to be displayed</annotation>
</track>
Is all the track information.
If you have more than one song you want to play, just keep adding more in this format. Here's a playlist with two songs:
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="0" xmlns = "http://xspf.org/ns/0/">
<trackList>
<track>
<location>http://www.name.com/folder/song.mp3</location>
<image></image>
<annotation>Text to be displayed</annotation>
</track>
<track>
<location>http://www.name.com/folder/song2.mp3</location>
<image></image>
<annotation>Text to be displayed</annotation>
</track>
Hope that made sense.
g. Once you've finished putting in all the information for your tracks, you need to end the script.
To do this, just put
</trackList>
</playlist>
At the end of your tracklist. (pretty simple, huh?)
So, to review again, here's what a completely finished, two-trakc playlist should look like in your text document:
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="0" xmlns = "http://xspf.org/ns/0/">
<trackList>
<track>
<location>http://www.name.com/folder/song.mp3</location>
<image></image>
<annotation>Text to be displayed</annotation>
</track>
<track>
<location>http://www.name.com/folder/song2.mp3</location>
<image></image>
<annotation>Text to be displayed</annotation>
</track>
</tracklist>
</playlist>
h. Save the text file as "playlist", or something simple. Keep it with all the other files you have.
Now, fine the playlist.txt you just saved, and right click the name. "Rename" the file to playlist
.xspf
Hit enter. It should NOT be playlist.xspf.txt
It should ONLY be playlist.xspf.
It has to be this format so the flash player can read it.
4. Host your playlist somewhere where you can direct link/hot link to it. It doesn't need ot be in the same place as any other files, as long as you have the direct link to the playlist.
5. Open up "xspf_player_slim.as" in Flash. It should be a LOT of text.
Because it's an action script file.
Find this part:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS <snip>
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
stop();
//autoplay=true
//repeat_playlist = true;
//playlist_size = 3;
//player_title = "customizeable title test"
//song_url = "http://downloads.betterpropaganda.com/music/Imperial_Teen-Ivanka_128.mp3";
//playlist_url = "http://webjay.org/by/hideout/moviequotes.xspf";
//playlist_url = "http://hideout.com.br/shows/radio-test.xspf";
//radio_mode = true;
//song_title = "Imperial Teen - Ivanka";
//autoload=true;
//info_button_text = "Add to Cart"
//playlist_url = "http://webjay.org/by/lucas_gonze/laconic.xspf"
//playlist_url= "http://hideout.com.br/tests/hideout2325.xspf"
//constants
Change
//player_title = "customizeable title test"
To what you want the title of the mp3 player to be.
So, for me it's
//player_title = "Q's mp3 Player"
It doesn't show up anywhere, so it really doesn't matter what you put in.
Change
//song_url = "http://downloads.betterpropaganda.com/music/Imperial_Teen-Ivanka_128.mp3"; to the song you want the playlist to start on.
Change
//playlist_url = "http://webjay.org/by/hideout/moviequotes.xspf";
//playlist_url = "http://hideout.com.br/shows/radio-test.xspf";
to the URL to the "playlist.xspf" you just uploaded.
Remember that?
Anyway, put in the same playlist twice. So it ends up like this:
//playlist_url = "http://webhost.com/folder/playlist.xspf";
//playlist_url = "http://webhost.com/folder/playlist.xspf";
Change
//song_title = "Imperial Teen - Ivanka"; to the song title of the song file you autoloaded. (Remember? The one in //song_url)
Completely delete
//info_button_text = "Add to Cart".
The end result of that should look like this:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS <snip>
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
stop();
//autoplay=true
//repeat_playlist = true;
//playlist_size = 3;
//player_title = "Q's Mp3 Player"
//song_url = "http://webhost.com/folder/1stsong.mp3";
//playlist_url = "http://webhost.com/folder/playlist.xspf";
//playlist_url = "http://webhost.com/folder/playlist.xspf";
//radio_mode = true;
//song_title = "Song Title Here";
//autoload=true;
//playlist_url = "http://webhost.com/folder/playlist.xspf"
//playlist_url= "http://webhost.com/folder/playlist.xspf"
//constants
6. Now for the stuff right after that.
Find this:
DEFAULT_PLAYLIST_URL = "http://hideout.com.br/shows/allshows.xspf";
DEFAULT_WELCOME_MSG = "Hideout XSPF Music Player - by Fabricio Zuardi";
LOADING_PLAYLIST_MSG = "Loading Playlist...";
DEFAULT_LOADED_PLAYLIST_MSG = "- click to start"
DEFAULT_INFOBUTTON_TXT = "Info"
Change
DEFAULT_PLAYLIST_URL = "http://hideout.com.br/shows/allshows.xspf"; to the playlist you already put in four times before.
Change
DEFAULT_WELCOME_MSG = "Hideout XSPF Music Player - by Fabricio Zuardi"; to whatever you want the player to say before someone has started playing a playlist. It will show up where the annotation stuff went.
Everything else you can leave the same.
In the end, it should look something like this:
DEFAULT_PLAYLIST_URL = "http://webhost.com/folder/playlist.xspf";
DEFAULT_WELCOME_MSG = "Hideout XSPF Music Player - by Fabricio Zuardi & Customized by Q";
LOADING_PLAYLIST_MSG = "Loading Playlist...";
DEFAULT_LOADED_PLAYLIST_MSG = "- click to start"
And that WHOLE SECTION should look somehting like this:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS <snip>
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
stop();
//autoplay=true
//repeat_playlist = true;
//playlist_size = 3;
//player_title = "Q's Mp3 Player"
//song_url = "http://webhost.com/folder/1stsong.mp3";
//playlist_url = "http://webhost.com/folder/playlist.xspf";
//playlist_url = "http://webhost.com/folder/playlist.xspf";
//radio_mode = true;
//song_title = "Song Title Here";
//autoload=true;
//playlist_url = "http://webhost.com/folder/playlist.xspf"
//playlist_url= "http://webhost.com/folder/playlist.xspf"
//constants
DEFAULT_PLAYLIST_URL = "http://webhost.com/folder/playlist.xspf";
DEFAULT_WELCOME_MSG = "Hideout XSPF Music Player - by Fabricio Zuardi & Customized by Q";
LOADING_PLAYLIST_MSG = "Loading Playlist...";
DEFAULT_LOADED_PLAYLIST_MSG = "- click to start"
Phew. That was a lot of crap to go through.
Don't mess with ANYTHING else, and save the .as file.
6. Upload "xspf_player_slim.as" to your webhost and DO NOT CHANGE THE FILENAME.
Upload "xspf_player_slim.swf" to the same webhost, in the SAME FOLDER as "xspf_player_slim.as" they should both be in the SAME PLACE.
7. Open up "xspf_player_slim.swf" on your webhost and give it a test run, see if it works and plays your song files.
If it doesn't, make sure everything is linked correctly, you have not run out of bandwidth, and you're allowed to direct link to your sound files.
If you fix all that and it's still not working, open up "xspf.fla" in Flash and re-export the moive, and re-upload the .swf. Sometimes this works for whatever reason.
If you change the filename of "xspf_player_slim.as" it messes up something within "xspf_player_slim.fla", causing your whole player to not work.
I'd tell you how to fix it, but I'm lazy; so just don't change the .as filename or it's location.
8. If all goes well, and it's working, take the direct URL to "xspf_player_slim.swf" and copy it.
Go to Gaia, click "My Gaia" in navigation, and then click "Multimedia".
Copy and paste your "xspf.swf" URL in the multimedia section.
(It should be somehting like http://webhost.com/folder/xspf_player_slim.swf)
Save your profile and view your profile page.
Everything should be working fine, now. =)