[Icecast] web page icecast client signal detection

Luigi Palmiero adnusielog4 at rmsud.esercito.difesa.it
Thu Oct 6 00:03:48 PDT 2005

I use this method, using a PHP page:


$source = `netstat -na | grep -E "8000.*EST" | grep | wc -l | tr -d [:blank:]`;

# WITH PORT = 8000 AND IP =

if ($source == 0) {

echo "<img src='img/offair.gif' alt='Off Air'>";

} else {

echo "<img src='img/onair.gif' alt='On Air'>";





  ----- Original Message ----- 
  From: Daniel Borders 
  To: icecast at xiph.org 
  Sent: Thursday, October 06, 2005 8:21 AM
  Subject: [Icecast] web page icecast client signal detection

  The subject is a little convoluted, so I'll explain. I'm nearly finished with an icecast web page and we need to go live soon, but part of the page design involves displaying different graphics when there is an .ogg signal detected and when there isn't. I.e. when there is a signal, an "on air" image appears and when there isn't a signal an "off air" image appears. I've looked everywhere I could think to but have been unable to find the signal-detection code that could be used to make this happen. Does anyone have an idea of what I could do?

  -Daniel "TheBuilder" Borders 


  Icecast mailing list
  Icecast at xiph.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/icecast/attachments/20051006/d8c14e13/attachment.htm

More information about the Icecast mailing list