microjude
Joined: 01 Oct 2010 Posts: 2
|
Posted: Tue Oct 19, 2010 4:51 am Post subject: Icecast now playing script in PHP |
|
|
Some code from hoolahoops. Get code at:http://code.google.com/p/icecast-now-playing-script/, demo site: http://judesimon.com/nowplaying.html
Features are:
Get the basic information of a given Icecast mount point
Server status: ON AIR or OFF AIR
Get extra information of the current song using last.fm‘s API:
Album artwork image in different size
Introduction and links of the current song, album and artist
Track list of the current album
Album list of the current artist
Cache album art images to local server
Get lyric of the current song using chartlyrics.com's API
Cache all the variables above to a local file, so no need to fetch API everytime the client send a request until the current song has changed. Fetching remote API too frequesntly will result in baning
Options to enable or disable certain feature(for cutting down the time the script need to process)
Auto refresh the now playing section(div) every several second in a HTML page |
|