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 

How can I get streams linked in flash dynamically?

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





PostPosted: Sat Oct 22, 2005 3:18 pm    Post subject: How can I get streams linked in flash dynamically? Reply with quote

I want my flash web site to have links to icecast streams but I want these links to contain information gathered from the current streams running on my local icecast server.

Is this possible using XML and can anyone supply an exapmple if yes.

The other thing I would like is an on/off air indicator of some sort again controlled dynamically by whats running on the server.
Back to top
Anonymous
Guest





PostPosted: Tue Nov 08, 2005 3:05 pm    Post subject: Reply with quote

I think my problem is somewhat similar.
I'm making a flash interface to an icecast powered radio (not a flash player, just a flash web page). It should show the mount's name, description, current song name, etc. Flash needs to take that data from an .xml file where current stream data is stored. I can't find that file.

In help FAQ something's said about "an XML file containing stream data", and that it looks like this:

Code:
<?xml version="1.0"?>
<icestats>
...
</icestats>


Now where exactly this file is and what's its name?

Sorry if I get smth wrong.
Thanks.
Back to top
Anonymous
Guest





PostPosted: Wed Nov 09, 2005 3:34 pm    Post subject: Reply with quote

It can be found at http://yourIP:yourPort/admin/stats.xml
Back to top
EvilOverlord
Forum Admin
Forum Admin


Joined: 12 Jun 2005
Posts: 177
Location: Isle of Man

PostPosted: Wed Nov 09, 2005 10:27 pm    Post subject: Reply with quote

Doesn't that require authentication though?
Back to top
View user's profile Send private message Visit poster's website
Anonymous
Guest





PostPosted: Thu Nov 10, 2005 6:50 am    Post subject: Reply with quote

spectral, no there's just stats.xsl (the one that parses the xml file, and I need the xml file itself).

In many .xsl files there's a line
Code:
<xsl:template match = "/icestats" >


Where's the file that contains the template this line's referring to?
Back to top
Anonymous
Guest





PostPosted: Thu Nov 10, 2005 8:19 pm    Post subject: Reply with quote

there is an xml file as well. in /admin. it does require authentication as EvilOverlord points out though.
Back to top
Anonymous
Guest





PostPosted: Mon Nov 14, 2005 6:09 am    Post subject: Reply with quote

When I browse the admin dir with Webmin, there's no stats.xml, but when I type http://yourIP:yourPort/admin/stats.xml in IE, there it is.

Thank you everybody.
Back to top
Anonymous
Guest





PostPosted: Mon Dec 05, 2005 8:24 am    Post subject: Reply with quote

And about that authentification...

I have this status.swf file that parses /admin/stats.xml. When I run my stats.swf (located in /web dir) authentification request pops up. All right with me, since I'm the admin, but what about users?

And I thought the files run from the /web dir won't need authentificaion. Sad

Is there a way to turn off authentification just for this specific status.swf, while not turning authentification off completely?
Back to top
Anonymous
Guest





PostPosted: Fri Dec 09, 2005 12:14 pm    Post subject: Reply with quote

Somebody please say smth.
I'm just so upset that I spent about a week making that flash interface and it's never going to work because of authentification. Sad
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Dec 09, 2005 3:55 pm    Post subject: Reply with quote

It sounds like your stats.swf is requesting information from the /admin/... pages, if so then authentication is needed for that request. Any xsl file in webroot can be used to present non-hidden stats to the user without auth, that sounds like that is what you want, /admin accesses are more restricted because they access hidden stats as well as specific handlers like metadata updating.

karl.
Back to top
View user's profile Send private message Send e-mail 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