<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I use this method, using a PHP page:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT size=2>
<P><?php</P>
<P>$source = `netstat -na | grep -E "8000.*EST" | grep 10.23.198.14 | wc -l | tr
-d [:blank:]`;</P>
<P># WITH PORT = 8000 AND IP = 10.23.198.14</P>
<P>if ($source == 0) {</P>
<P>echo "<img src='img/offair.gif' alt='Off Air'>";</P>
<P>} else {</P>
<P>echo "<img src='img/onair.gif' alt='On Air'>";</P>
<P>}</P>
<P>?></P>
<P>Thanks</P>
<P>Luigi</P></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=eliteinfantry@msn.com href="mailto:eliteinfantry@msn.com">Daniel
Borders</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=icecast@xiph.org
href="mailto:icecast@xiph.org">icecast@xiph.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, October 06, 2005 8:21
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Icecast] web page icecast
client signal detection</DIV>
<DIV><BR></DIV>
<DIV>
<P>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?<BR></P><BR><BR><BR>
<DIV>
<P>-Daniel "TheBuilder" Borders </P></DIV></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Icecast mailing
list<BR>Icecast@xiph.org<BR>http://lists.xiph.org/mailman/listinfo/icecast<BR></BLOCKQUOTE></BODY></HTML>