How to get realtime Now Playing info from Ice Cast
Khalid Adisendjaja · August 12, 2014
Getting a #NowPlaying info from your Ice Cast 2 server is pretty dead simple. You can get current track information from scrapping the XSPF url periodically by using CURL command. Here I’m going to explain how it works, I’m going to make a short javascript code to periodically update the current playing track and a simple php script to curl the xspf endpoint.
Locate your Ice Cast Server url, usually it will look like this http://xxx.xxx.xxx.xxx:8000/status.xsl, check your mount point, ex: /mount. So your xspf url will be http://xxx.xxx.xxx.xxx:8000/mount.xspf
Create a small function to fetch xspf endpoint for your php file, xspf_function.php