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 

I want to show "now playing" on my website

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
sonia



Joined: 28 Dec 2008
Posts: 67
Location: Greece

PostPosted: Thu Apr 23, 2009 1:06 am    Post subject: I want to show "now playing" on my website Reply with quote

please if somebody knows an easy and efficient way for icecast.

my icecast is on linux centos 5.2.
and the page is a plain html.


thank you
_________________
www.freshwebradio.com
Back to top
View user's profile Send private message
DJ-Zath



Joined: 11 Feb 2009
Posts: 155
Location: Western Illinois - USA

PostPosted: Fri Apr 24, 2009 3:24 pm    Post subject: Reply with quote

Hi Sonia (pretty name, BTW Smile ):

you mean like THIS or maybe THIS?

the code I use is custom (I wrote it) and works with Icecast through an eggdrop bot.. and wouldn't be "easy" to set up for you persay.. unless you use an IRC chatroom or something..

however, there is php code out there that can collect stats and redisplay them on a website, though I couldn't give you the name of any in particular, sorry sweetie..

perhaps you can google "php icestats" and see if you can find anythig that suits your needs?

-DjZ-
Smile Smile
Back to top
View user's profile Send private message Visit poster's website
sonia



Joined: 28 Dec 2008
Posts: 67
Location: Greece

PostPosted: Fri Apr 24, 2009 4:33 pm    Post subject: Reply with quote

hello hello Zath
thaaaaank you for my name.you gentleman. Wink

I'd say I'm looking for something of "maybe this" you told me. But there is a big (_|_) here! I don't want to show stats also. Only the metadata artist+tile. the question in that is, the fonts, colors etc, would I be able to handle as I want or are all prefixed? (sorry my profession is freelance graphic designer and I'm also making all those stuff and I have to know Wink). if yes, no irc but we can talk through messenger?

regarding this, don't sorry me, please I understand 100000%.
Quote:
however, there is php code out there that can collect stats and redisplay them on a website, though I couldn't give you the name of any in particular, sorry sweetie..


and final for this...
Quote:
perhaps you can google "php icestats" and see if you can find anythig that suits your needs?
....ouuuuf so so many days I have tried so many things, combinations @ google and everybody suggests something and the funny thing that nobody is working correcty! lol

Zath, thank you so so soooo much for all the infos.

Wink [/quote]
_________________
www.freshwebradio.com
Back to top
View user's profile Send private message
DJ-Zath



Joined: 11 Feb 2009
Posts: 155
Location: Western Illinois - USA

PostPosted: Sun May 03, 2009 2:44 am    Post subject: Reply with quote

Hi again Sonia!

in reading your reply, perhaps I misunderstood your initial question:

were you asking if the stats page generated in Icecast is customizable?

YES!

you CAN write your own version of the Icecast stats page(s) and even to include different pages of the same thing with different styles and fonts etc..

it uses the XSL format- and will require the XSL headers and internal tags which are called within the XSL page itself.. once you understand that, you can simply include only the lines you wish and then call it anything you like BUT it MUST be "yourfilename.xsl" where "yourfilename" is whatever you wish to call it and the "xsl" extension MUST be present! (if you use other tags besides .xsl, then you MUST have the <fileserve>1</fileserve> set in the cfgs.. doing this can open the entire web (or Icecast's) dir/folder to the public and BYPASS Icecast's security protocols (which can be a problem in some installs such as mine)

With all that in mind, then YES you CAN add stylesheets, CSS, shtml, fonts, etc etc to your new Icecast stats page(s) and/or even have them run "side-by-side" with the orginals too.

now, what you can NOT do, is call up XML pages unless you use the ADMIN login.. But thats an entirely DIFFERENT animal altogether and beyond the scope of this thread...

in short, I do all of this-

heres an example of MY customized stats page:

Code:

<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transf
orm" version = "1.0" >
<xsl:output omit-xml-declaration="yes" method="xml" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" indent="no" encoding="UTF-8" />
<xsl:template match = "/icestats" >

<pre>
<hits><xsl:value-of select="connections" /></hits>
<xsl:for-each select="source">
<mark>
<mount><xsl:value-of select="@mount" /></mount>
<start><xsl:value-of select="stream_start" /></start>
<type><xsl:value-of select="server_type" /></type>
<rate><xsl:value-of select="bitrate" /></rate>
<name><xsl:value-of select="server_name" /></name>
<desc><xsl:value-of select="server_description" /></desc>
<genre><xsl:value-of select="genre" /></genre>
<url><xsl:value-of select="server_url" /></url>
<artist><xsl:value-of select="artist" /></artist>
<song><xsl:value-of select="title" /></song>
<node><xsl:value-of select="listeners" /></node>
<peak><xsl:value-of select="listener_peak" /></peak>
<source><xsl:value-of select="source_connections" /></source>
<qual><xsl:value-of select="quality" /></qual>
<vid_qual><xsl:value-of select="video_quality" /></vid_qual>
<fr_size><xsl:value-of select="frame_size" /></fr_size>
<fr_rate><xsl:value-of select="frame_rate" /></fr_rate>
</mark>
</xsl:for-each>
</pre>

</xsl:template>
</xsl:stylesheet>



what this does is simplifies the stats into a simple "text" form readable by my bot...

I hope this helps!

-DjZ-
Smile Smile
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server 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