[Icecast] web page icecast client signal detection

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


I use this method, using a PHP page:

<?php

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

# WITH PORT = 8000 AND IP = 10.23.198.14

if ($source == 0) {

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

} else {

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

}

?>

Thanks

Luigi











  ----- 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
  http://lists.xiph.org/mailman/listinfo/icecast
-------------- 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