[Icecast] icecast 2.4 check if source exists?

"Thomas B. Rücker" thomas at ruecker.fi
Sat Jun 7 05:47:41 UTC 2014


On 06/06/2014 01:08 PM, uno wrote:
> ... to answer myself: 
>
> i had a fallback-mount specified, after removing it
> things work as expected. sorry for the noise.

In case of fallbacks you have to check properly through querying a
custom XSL, JSON or the admin backend.


> btw: what's the prefered way to get server and/or listener info?

http://icecast.org/docs/icecast-2.4.0/icecast2_stats.html


> for example, within a script (php / curl), i use
> http://127.0.0.1:8000/admin/listclients?mount=/mymount
> for getting info on listeners 

If you need IPs and UA strings then that's the only option. Plain
numbers you can get easier.
Note:
- as you noticed listclients instead of listclients.xsl gives you raw XML
- you can get mount specific information using the mount specific
credentials, you don't have to use admin credentials.

> is there a better way / api?
see docs link above.

Cheers

Thomas



More information about the Icecast mailing list