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"
Playa.doPlay()
and Playa.doStop()
that may be used in place of Playa.doPlayStop()
playa is a streaming mp3 player that you can embed into your webpage
to offer backing music.
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.
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).
You may download source + executable from :
http://www.kyberfabrikken.dk/opensource/playa/playa.zip
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.
The music playing in the demo is made by Mellow-d
http://www.fm.org/appelsap/
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"
Playa.doPlay()
and Playa.doStop()
Playa.doPlayStop()
Playa
namespace. To updgrade your existing
PlayaDoPlayStop() -> Playa.doPlayStop()
PlayaDoNext() -> Playa.doNext()
PlayaUpdateInterface() -> Playa.updateInterface()