Site hosted by Angelfire.com: Build your free website today!

Streaming Mp3 Flash Player

Loading

7.feb.2005 Update :

By request, I added the option to play a single file in lieu of a playlist. This is useful if you need to play a single stream (such as netradio) and don't want the hassle of creating a playlist.
To play a single file, replace the playlist parameter with a urlfile parameter, that should point to a mp3-file.
Example :

<param name="flashvars" value="autoplay=true&urlfile=ftp://ftp.scene.org/pub/music/artists/mellow-d/mp3/md-appelsap-6-128.mp3">
...
flashvars="autoplay=true&urlfile=ftp://ftp.scene.org/pub/music/artists/mellow-d/mp3/md-appelsap-6-128.mp3"
I also added two new methods Playa.doPlay() and Playa.doStop() that may be used in place of Playa.doPlayStop()

What ?

playa is a streaming mp3 player that you can embed into your webpage
to offer backing music.

Why ?

I recently needed a simple mp3-player to imbed into a clients webpage.
After hours of searching, all i found was a commercial component (wimpy),
and a load of realy ugly players that didn't fit into the design.

I eventualy found googlerank's free player, but it was just a tad
too simple (I needed a playlist), so i made playa.

In the event that anybody else should come in need of a free player,
I hereby release playa as free software under the terms of LGPL.

How ?

This little critter use a flash-object for playing mp3's, but
leaves the handling of the gui to html/javascript.
This makes it extremely easy to tailor the appearence to your
needs.
You will need some basic html-skills to tamper with the appearence,
and you will need some of the same skills to edit the playlist (witch
is in xml-format).

Where ?

You may download source + executable from :
http://www.kyberfabrikken.dk/opensource/playa/playa.zip

Copyright

Copyright (C) 2004,2005 troels knak-nielsen

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation;
version 2.1 of the License.

Credits

The music playing in the demo is made by Mellow-d
http://www.fm.org/appelsap/

History

7.feb.2005 Added features. (version 1.2)
By request, I added the option to play a single file in lieu of a playlist.
This is useful if you need to play a single stream (such as netradio) and
don't want the hassle of creating a playlist.
To play a single file, replace the playlist parameter with
a urlfile parameter, that should point to a mp3-file.
Example :

<param name="flashvars" value="autoplay=true&urlfile=ftp://ftp.scene.org/pub/music/artists/mellow-d/mp3/md-appelsap-6-128.mp3">
...
flashvars="autoplay=true&urlfile=ftp://ftp.scene.org/pub/music/artists/mellow-d/mp3/md-appelsap-6-128.mp3"
I also added two new methods Playa.doPlay() and Playa.doStop()
that may be used in place of Playa.doPlayStop()
22.dec.2004 Bugfix. (version 1.1)
There was a bug in the first release, that caused the buttonlabels to
not update properly under some circumstances. This has been fixed.
At the same time, I cleaned up the javascript code a bit - All code is
now contained in the Playa namespace. To updgrade your existing
code to work with the new 1.1, change the following calls :
16.aug.2004 First public release. (version 1)