View previous topic :: View next topic |
Author |
Message |
LucaTNT
Joined: 23 Jan 2009 Posts: 1 Location: Italy
|
Posted: Fri Jan 23, 2009 1:45 pm Post subject: Auto add relays |
|
|
Hello everyone!
I'm currently using Icecast on my NSLU2 to use it as a relay of a web radio which is always listened to by at least 2 users on my LAN. This relay is on-demand.
I was wondering if I can configure Icecast so that any user can require any webradio to pass through it, in proxy style.
For example, if a user wants to listen to a stream located at htttp://my-web-radio.com/stream he just enters http://IP-OF-ICECAST:8000/my-web-radio.com/stream in his player and the stream is available to everyone in the LAN saving bandwidth.
How can I do that?
Thanks in advance,
Luca |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Jan 23, 2009 2:48 pm Post subject: |
|
|
hmm, odd one. It's not possible solely within icecast, but you could via auth url. something like the following
http://ip:8000/mystream?server=host&port=80&mount=/stream
the url script in listener_add could then populate the tags for a relay/mount in the xml and send a HUP signal. You'll need a small delay between the HUP and returning a icecast-auth-user: 1 header back, so that the relay is ready to go. subsequent calls could just use /content if your script allows it but you obviously want to handle cases like, is it already configured etc.
karl. |
|
Back to top |
|
|
|