Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Colocar Status

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Foro Español
View previous topic :: View next topic  
Author Message
Carlos
Guest





PostPosted: Sun Oct 09, 2005 7:16 pm    Post subject: Colocar Status Reply with quote

Buenas , Alguno sabe como colocar un status parecido al de shout cast, donde aparece escuchas, cancion pasada etc... , e intentado colocar los datos de la radio en el de shout cast pero no acepta los datos... , Gracias
Back to top
epe
Asesor español
Asesor español


Joined: 27 Aug 2005
Posts: 132
Location: Quito - Ecuador

PostPosted: Mon Oct 10, 2005 2:17 am    Post subject: Reply with quote

Qué tal:
http://IPDETUSERVER:8000/admin/

Ahi podrás ver los estatus de todos tus streams.

El único detalle es que cada usuario, de forma independiente, no lo podrá ver. Nosotros implementamos un sistemita que lee la información de esta URL y se la muestra al usuario (sólo la info del usuario en particular), pero lo tuvimos que hacer aparte del icecast pues este no lo tiene implementado.

saludos
epe
_________________
--
http://www.NuestroServer.com
USA: +1 305 359 4495, España: +34 911 877 602
Ecuador: +593 2 600 4454
Se habla español
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Carlos
Guest





PostPosted: Tue Oct 11, 2005 11:52 pm    Post subject: Ahmm Reply with quote

Y donde puedo conseguir ese status ke me mencionas, quisas podria ver si lo puedo llegar a modificar , con algo parecido al stats del shoutcast
Back to top
Anonymous
Guest





PostPosted: Fri Oct 14, 2005 6:05 am    Post subject: Reply with quote

tambien lo hacen en www.one.cl

fijate que salen las radios (mount points) que tienen bajo ICECAST y lo que estan tocando.. apare de cuantos están escuchando.
Cool

Cómo se puede hacer eso?... sin tener el server, claro está..
Exclamation
Back to top
epe
Asesor español
Asesor español


Joined: 27 Aug 2005
Posts: 132
Location: Quito - Ecuador

PostPosted: Sun Nov 06, 2005 3:59 pm    Post subject: Reply with quote

Bueno, no hay una forma directa de hacerlo. En el caso nuestro programamos un script que toma los datos del /admin/ y muestra sólo los referentes al mountpoint del usuario en sí. De esta forma el usuario puede ver los conectados a su señal.

Realmente es algo que supongo se agregará en versiones futuras pues es muy solicitado.

saludos
epe
_________________
--
http://www.NuestroServer.com
USA: +1 305 359 4495, España: +34 911 877 602
Ecuador: +593 2 600 4454
Se habla español
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Anonymous
Guest





PostPosted: Tue Apr 04, 2006 3:43 pm    Post subject: Reply with quote

Aca tenes un script simple, que captura los datos de un status_bls.xsl que tenes que subir al servidor icecast en: /usr/local/share/icecast/web/

crear un archivo llamado status_bls.xsl que contenga lo siguente:

<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0" >
<xsl:output method="html" indent="yes" />
<xsl:template match = "/icestats" >
<!--<HTML>
<HEAD>
<meta http-equiv="pragma" content="no-cache" />
</HEAD>
<BODY>-->
<xsl:value-of select="source_connections" /><xsl:value-of select="listeners" />
<xsl:for-each select="source">
<xsl:value-of select="@mount" />|||
<xsl:value-of select="listeners" />|||
<xsl:value-of select="bitrate" />|||
<xsl:value-of select="artist" /><xsl:value-of select="title" />|||
<xsl:value-of select="stream_start" />|||
<xsl:value-of select="server_description" />|xx|
</xsl:for-each>
<!--</BODY>
</HTML>-->
</xsl:template>
</xsl:stylesheet>


Una vez que tengas ese archivo, podés hacer un script como este (ejeplo) en php, subilo a tu servidor web y nombralo como quieras, lo vas a acceder de esta forma: http://tu.numero.ip.odominio:puerto/pagina.php?mount=/stream




<head>
<style type="text/css">
<!--
.style3 {
font-family: tahoma;
font-size: 10px;
color: #00455A;
}
.styleErr2 {
font-family: tahoma;
font-size: 10px;
color: #FF0000;
}

body, td {
font-family: tahoma;
font-size: 11px;
}

</style>
</head>
<?php
$mountpoint = trim($_GET['mount']);

$ip = "tuhost.o.direccion.ip";
$port = "puerto";

$lines = file("http://$ip:$port/status_bls.xsl");
$exp = implode(" ", $lines); $exp = explode("|xx|", $exp);
$count = count($exp);

for ($i = 0; $i < $count; $i++) {

$dos = explode("|||", $exp[$i]);

if ($mountpoint == trim($dos[0])) {

$check = $dos[0];

if (($dos[0] == '') && (!isset($dos[0]))) { $mount = "Sin conexión"; } else { $mount = "ONLINE ($mountpoint)"; }
if (($dos[1] == '') && (!isset($dos[1]))) { $oyentes = "0"; } else { $oyentes = trim($dos[1]); }
if (($dos[2] == '') && (!isset($dos[2]))) { $bitrate = "0"; } else { $bitrate = trim($dos[2]); }
if (($dos[3] == '') && (!isset($dos[3]))) { $repro = "-"; } else { $repro = trim($dos[3]); }

if ($bitrate == '') { $bitrate = "No disponible"; } else { $bitrate = $bitrate." kbps"; }

}

}

?>
<table style="padding: 2px 2px 2px 2px;border-width:1px;border-color:#ABABAB" width="488" cellspacing="2" cellpadding="0">
<tr>
<td width="106" bgcolor="#EAEAEA">Estado</td>
<td width="10">&nbsp;</td>
<td width="280" style="border-width:1px; border-bottom-style:dashed; border-bottom-color:#969696"><span class="<?php if (isset($check)) { echo "style3"; } else { echo "styleErr2"; } ?>"><?php if (isset($check)) { echo $mount; } else { echo "OFFLINE"; } ?></span></td>
<td width="17" rowspan="4"> <div align="center"></div></td>
<td width="63" rowspan="4" bgcolor="#EAEAEA"></td>
</tr>
<tr>
<td bgcolor="#EAEAEA">Compresi&oacute;n</td>
<td>&nbsp;</td>
<td style="border-width:1px; border-bottom-style:dashed; border-bottom-color:#969696"><?php echo $bitrate; ?></td>
</tr>
<tr>
<td bgcolor="#EAEAEA">Oyentes</td>
<td>&nbsp;</td>
<td style="border-width:1px; border-bottom-style:dashed; border-bottom-color:#969696"><?php echo $oyentes; ?></td>
</tr>
<tr>
<td bgcolor="#EAEAEA">Reproduciendo</td>
<td>&nbsp;</td>
<td style="border-width:1px; border-bottom-style:dashed; border-bottom-color:#969696"><?php echo $repro; ?></td>
</tr>
</table>


Espero te de alguna idea este script
Back to top
Anonymous
Guest





PostPosted: Thu Jun 22, 2006 9:24 pm    Post subject: Reply with quote

Que buen script!
Funciona perfecto!
Alguien conoce otros??
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Foro Español All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber