View previous topic :: View next topic |
Author |
Message |
Anonymous Guest
|
Posted: Thu Mar 30, 2006 10:28 am Post subject: notification if a stream starts on local machine / website |
|
|
i run a server where people can stream whenever they want. is it possible somehow to notify me and other people on their local machines or when a stream starts? i think of RSS feeds maybe.
or can i at least include something like an "ON AIR" message on my connected website?
cheers |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Mar 30, 2006 1:12 pm Post subject: |
|
|
you can use the on-connect scripts or even auth url for something like that.
karl. |
|
Back to top |
|
|
Anonymous Guest
|
Posted: Sat Apr 01, 2006 1:31 pm Post subject: |
|
|
<%
s1URL = "http://www.homepage.com"
response.write "Webserver 1<br>"
iStatus = 0
set obj = Server.CreateObject("MSXML2.XMLHTTP.4.0")
On Error Resume Next
obj.open "Get", s1URL, False
obj.send ""
If err.number = 0 then
iStatus = obj.Status
End if
If iStatus = 200 then
Response.Write "<a href='"& s1URL &"' target=_blank><font color=green>Online/font></a>"
else
Response.Write "<font color=red>Offline</font>"
End if
%>
Required: IIS-Webserver, XML-Parser
is this correct / working with icecast? |
|
Back to top |
|
|
Anonymous Guest
|
Posted: Mon Apr 03, 2006 1:09 pm Post subject: |
|
|
or is there a way i could include/display the status.xsl or parts of it like Stream Title on an external website? |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Apr 03, 2006 1:31 pm Post subject: |
|
|
the status.xsl or any other xsl file under webroot can be tweaked to your own layout and any web page from a normal web server can refer to it, a simple iframe would work.
karl. |
|
Back to top |
|
|
Anonymous Guest
|
Posted: Tue Apr 11, 2006 12:05 am Post subject: |
|
|
thanks karl! it worked out fine with the iframe.
now is there a way to display a message when there is no stream, just an OFF AIR message? something with this?:
</xsl:when>
<xsl:otherwise> |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Apr 11, 2006 2:11 am Post subject: |
|
|
yeah, that should work fine
karl. |
|
Back to top |
|
|
Anonymous Guest
|
Posted: Tue Apr 11, 2006 11:58 am Post subject: |
|
|
hrr. that doesn't help me much
<xsl:otherwise>
<h3><xsl:value-of select="@mount" /> - Not Connected</h3>
nothing shows up. |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Apr 11, 2006 1:20 pm Post subject: |
|
|
it's impossible to give specific answers to such things as it varies on what you have configured. If the xml data doesn't contain the source details (which it may not have when not connected) then the xslt has to be coded with knowlege of it.
karl. |
|
Back to top |
|
|
|