[Icecast] Standard method to read current listeners without user/password

Geoff Shang geoff at QuiteLikely.com
Fri May 13 06:19:04 UTC 2011


Hi Ross,

Sorry if anyone else has already answered this.

Yes there is.  Icecast can produce stats in any format desired using XSLT 
templates.  These take the built-in XML as input and can format the output 
any way you like.

There are two XSLT templates included with Icecast2 by default, status.xsl 
and status2.xsl.  Status2.xsl would be easy to parse as it outputs in CSV 
format.  The format is:

MountPoint,Connections,Stream Name,Current Listeners,Description,Currently 
Playing,Stream URL

Of course, as these are external files, the server admin could call them 
whatever they want.  But in my experience, most people leave them exactly 
where they are installed.  So you'll be able to find it at 
http://server:port/status2.xsl

I've actually been meaning to write to you about this as I'm not  real 
wild about broadcasters having the admin password to the server either.  I 
wish there were some way to password-protect XSL-generated stats with some 
other password in Icecast2 in order to keep the information safe from 
prying eyes, but I don't think it is.  Maybe a feature for 2.3.3, whenever 
it comes out?

Geoff.




More information about the Icecast mailing list