| View previous topic :: View next topic |
| Author |
Message |
vinhetariaecia
Joined: 08 Oct 2009 Posts: 12
|
Posted: Fri Oct 09, 2009 6:00 am Post subject: How do I not show the number of listeners connected? |
|
|
How do I not show the number of listeners listening to the radio at the moment and the peak of listeners on the "Icecast2 Status"?
Thanks.  |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Oct 09, 2009 11:36 am Post subject: |
|
|
The xsl file is a template, just remove the block referring to the display of the listeners stat.
karl. |
|
| Back to top |
|
 |
vinhetariaecia
Joined: 08 Oct 2009 Posts: 12
|
Posted: Sun Oct 11, 2009 4:09 am Post subject: |
|
|
Sorry for my English, I'm Brazilian. I understand little of this, because I'm not the owner of the server, so I have a radio through the CentovaCast.
How can I guide my streaming provider to perform this kind of change? I believe that I even can not do these procedures, so how can I get more detailed information about which file should I change and how I access it? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Oct 11, 2009 12:55 pm Post subject: |
|
|
the status.xsl page in webroot is what is used to given you the details of the streams you have. That xsl page is a template, by removing the listener stats from that xsl you'll be able to prevent the display of the listener count. The code for this is
| Quote: |
<xsl:if test="listeners">
<tr><td>Current Listeners:</td><td class="streamdata"> <xsl:value-of select="listeners" /></td></tr>
</xsl:if>
|
Not difficult to achieve, but whether you are allowed to do this will depend on your provider.
karl. |
|
| Back to top |
|
 |
russellharrower
Joined: 11 Oct 2009 Posts: 10
|
Posted: Wed Oct 14, 2009 5:00 am Post subject: |
|
|
I am creating a script to show the current number of listeners on my site, how would I do that, meaning get the information form the page?
Or create a page that is accessable by visiting a link like
192.168.0.14:8998/listen.xml
and that file would have the information I need. |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Oct 14, 2009 7:18 pm Post subject: |
|
|
That is just the opposite of what was asked originally. If you are only interested in the listeners stats then have the xsl page only refer to that. The xsl page can be as simple or complicated as you want, but obviously if you want to read that into a program then you would make it as easy to parse as possible. Take a look at the status2.xsl as an example.
karl. |
|
| Back to top |
|
 |
vinhetariaecia
Joined: 08 Oct 2009 Posts: 12
|
Posted: Fri Oct 16, 2009 9:02 am Post subject: |
|
|
Should I see after the hearing through the Administration section? (example: http://myipfromserver:8000/admin)
I can also not show any page or leave it blank?
Last edited by vinhetariaecia on Fri Oct 16, 2009 2:54 pm; edited 1 time in total |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Oct 16, 2009 1:36 pm Post subject: |
|
|
these are for pages in webroot, just like status.xsl, not adminroot.
karl. |
|
| Back to top |
|
 |
vinhetariaecia
Joined: 08 Oct 2009 Posts: 12
|
Posted: Sun Oct 18, 2009 1:20 am Post subject: |
|
|
| I can also not show any page or leave it blank? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Oct 18, 2009 3:27 am Post subject: |
|
|
The exact layout of the pages in webroot is completely up to you. We just provide a simple set of xsl pages to show how you can get the information about the streams. icecast has no problem with you having no xsl pages.
karl. |
|
| Back to top |
|
 |
vinhetariaecia
Joined: 08 Oct 2009 Posts: 12
|
Posted: Sun Oct 18, 2009 4:32 am Post subject: |
|
|
| I delete the page or not, I can keep track of information (which are not visible to others), under the Administration? (number of listeners, peak and other data) |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Oct 18, 2009 1:46 pm Post subject: |
|
|
of course, adminroot translations are separate from webroot ones, the only time webroot is referenced is when the admin page has a link to a non-admin item like css or an image.
karl. |
|
| Back to top |
|
 |
|