| View previous topic :: View next topic |
| Author |
Message |
Yatester Guest
|
Posted: Sat Oct 22, 2005 3:18 pm Post subject: How can I get streams linked in flash dynamically? |
|
|
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
|
Posted: Tue Nov 08, 2005 3:05 pm Post subject: |
|
|
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
|
|
| Back to top |
|
 |
EvilOverlord Forum Admin


Joined: 12 Jun 2005 Posts: 177 Location: Isle of Man
|
Posted: Wed Nov 09, 2005 10:27 pm Post subject: |
|
|
| Doesn't that require authentication though? |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Thu Nov 10, 2005 6:50 am Post subject: |
|
|
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
|
Posted: Thu Nov 10, 2005 8:19 pm Post subject: |
|
|
| there is an xml file as well. in /admin. it does require authentication as EvilOverlord points out though. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Mon Nov 14, 2005 6:09 am Post subject: |
|
|
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
|
Posted: Mon Dec 05, 2005 8:24 am Post subject: |
|
|
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.
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
|
Posted: Fri Dec 09, 2005 12:14 pm Post subject: |
|
|
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.  |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Dec 09, 2005 3:55 pm Post subject: |
|
|
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 |
|
 |
|