iPlayer
iPlayer evolved from a project that I recently completed for a client who wanted to feature an Internet radio station on his website. A live example can be found here: http://countryradio.ch
The script is fetching the information of the currently running song, including song title, artist and cover art if available. It is based on Mootools as well as JW Player that has been downloaded over 5 million times by companies and individuals.
It also shows the recent history of the songs played. The script can be set to only play for a certain period of time or endlessly and it can be used for any Internet radio station.
Features
- Listen to Internet radio stream
- Retrieve stream information (song title, artist)
- Retrieve stream history
- Retrieve stream artwork (CD cover)
- Plays MP3 files
Arguments:
options: {
path: './assets/site/scripts/request_cover.php',
host: 'rs3.radiostreamer.com',
port: 9330,
current: 'true',
history: true,
cover: 'true',
altCover: 'true',
type: 'html', // html or array
size: 'MediumImage',
spinner: true,
onCallback: $empty
},
Example:
var stream = new Stream('streamWidget', {
history: false,
size: 'SmallImage',
altCover: 'false',
spinner: false,
onCallback: function(){
this.setLinks();
}.bind(this)
});
Donations
If you use one of my scripts, I'd really like you to donate some little money with paypal to keep the development going.
Note: after donating, you will receive an automatic e-mail notification by PayPal. So if you donate as a company, you should be able to use that notification for your tax records.