Listen to your favorite music from our licensed radio stations!   

Home Station Directory Radio Players  
Pricing & Signup Broadcaster's Area
 Navigation:
Home
 Listeners:
Station Directory
Radio Players
 Broadcasters:
Broadcasters Area
Pricing & Signup
F.A.Q.
Resource Partners
Tutorials
Community Forum
LoudCity Forum
Legal Info
Contact Us

Author Topic: Icecast KH stats  (Read 4362 times)

SnowHow

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • A-1 Radio
Icecast KH stats
« on: July 14, 2014, 08:31:15 PM »
Apologies if this is the wrong spot. This seems to be the "Catch All" board.

Since StreamLicensing uses Icecast KH servers, I'm hoping someone here can point me in the right direction. I maintain several plugins for the RadioDJ program. Two of them retrieve stats from servers, one is a simple listener graph plugin, the other is a full blown (almost) Sam-like encoder.

The encoder works as expected. It uses the bass library to encode to and retrieve stats from SHOUTcast v1, v2 and Icecast2. It will also encode to Icecast KH, but will not retrieve stats.

The relay plugin uses a web request to get the stats from the server pages. Shoutcast v1 and 2 works. I cannot get stats off either icecast version at all.

The problem with the encoder is that the bass library does not support KH. It absolutely refuses to accept any password (source or admin) in order to get stats. A workaround I'm looking at is to use a web request to obtain stats for KH. This workaround would solve the problem for both plugins.

What I'm looking for is ANY kind of example - PHP, ASP, C# or VB.Net - that will give me some kind of clue as to how to get stats from an Icecast KH server.

I'm working in VB.Net, but at this point I'm so frustrated with this I'll take any example I can get.

Thanks!  :)

icastcenter

  • Sr. Member
  • ****
  • Posts: 262
  • StreamLicensing Preferred Provider
    • View Profile
    • iCastCenter.com
Re: Icecast KH stats
« Reply #1 on: July 15, 2014, 12:26:31 AM »
Hi,

To pull full stats for a mount point from Icecast-KH use this format:

http://host.server.com:8000/admin/stats.xml?mount=/stream

Also you need to authenticate using standard HTTP authentication via user "admin" with the admin password set on the server.

So an example from Linux using Curl to spider the stats, you would issue this command:

Code: [Select]
curl -A "Mozilla/4.0 (Your Script Name)" -u "admin:password" "http://host.server.com:8000/admin/stats.xml?mount=/stream"
Hope this helps!

Brandon
Brandon Wade
Owner, iCastCenter.com - StreamLicensing Preferred Provider
http://www.icastcenter.com

icastcenter

  • Sr. Member
  • ****
  • Posts: 262
  • StreamLicensing Preferred Provider
    • View Profile
    • iCastCenter.com
Re: Icecast KH stats
« Reply #2 on: July 15, 2014, 12:28:15 AM »
Also I believe you either get stats for all mount points or a summary if you don't specify a mount.

Brandon
Brandon Wade
Owner, iCastCenter.com - StreamLicensing Preferred Provider
http://www.icastcenter.com

SnowHow

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • A-1 Radio
Re: Icecast KH stats
« Reply #3 on: July 15, 2014, 03:29:00 PM »
Code: [Select]
curl -A "Mozilla/4.0 (Your Script Name)" -u "admin:password" "http://host.server.com:8000/admin/stats.xml?mount=/stream"

Aha! Now I get it.

Thanks!  ;D

J-