Hello,
After some time i was sick i came back to my hobby project, and i found one
problem i can't find solution for.
I have a radio, that is using liquidsoap. On my radio we have some
different roles (radio owner, djs).
Basically, radio uses 3 levels of streaming:
(0) => security track (that is playing if autodj & harbour are broken)
(1) => autodj (if there is no live broadcating at the moment)
(2) => harbour broadcasting.
The idea is to get rid of using icecast's authentication & implement our
roles logic implementation.
How do i see it, example 1:
1. Autodj is playing. Radio dj opens his winamp with edcast plugin (for
example), enters his credentionals from the website & tries to connect to
the port that is owned by our daemon (this port can accept requests from
the internet).
2. Daemon (pre-dispatcher) checks password/login in the database, checks
users' rights. If nobody streaming at the moment, daemon redirects (or just
passthrough) user's edcast to another, liquidsoap port (it is closed from
the internet by firewall), and then user can broadcast.
example 2:
1. Autodj is playing. Radio owner opens his winamp with edcast plugin (for
example), enters his credentionals from the website & tries to connect to
the port that is owned by our daemon.
2. Daemon checks password/login in the database, checks users' rights. If
radiodj is streaming at the moment through the harbour, he will be kicked.
then daemon redirects user's edcast to another, liquidsoap port, and then
user can broadcast.
Questions:
1. Are we able to make "redirect" from one unix port (that is opened to the
internet) to another (liquidsoap port, that is available only locally)
using our daemon?
2. Is my solution is ok, or there are more simple ways to implement this?
3. Will it be ok if i will write this daemon in PHP/Perl, or it is
unsuitable?
P.S. All my experience before i had just with LAMP & websites, php daemons.
So, please, take my questions, that could be stupid easily.
I am not a bummer, i just don't know where i can start with this....
--
Kind regards,
Alexander.
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users