Hello

Yes ! i'll do this ! 

Can you give me sample for auth, on_connect and on_disconnect ? I don't
really understand good syntax.

output.harbor(%mp3(bitrate=128),
auth=?????;on_connect="/home/connect.sh",on_disconnect="/home/disconnect.sh"
,port=8005,mount="listen",url="http://www.numerizik.com",icy_metadata="true";
,protocol="icy",source)

Thanks

-----Message d'origine-----
De : Romain Beauxis [mailto:[email protected]] 
Envoyé : mardi 9 août 2011 02:57
À : Guillaume (Numerizik)
Cc : [email protected]
Objet : Re: [Savonet-users] Output.harbor

Le 8 août 2011 08:59, Guillaume (Numerizik) <[email protected]> a écrit :
> Hello,

Hi!

> Can you tell me how i can see actual track with output harbor ?

I guess you mean something like the web admin page of icecast.. There is no
such thing at the moment with output.harbor.

As usually in liquidsoap, we tend to provide first low-level functionalities
and then build advanced facilites from it (like smart_crossfade vs.
smart_cross for instance)..

In this case, all the basic bricks are present: you can use operators such
as on_metadata to keep track of the metadata passed to output.harbor and use
harbor's HTTP functionalities (see:
http://savonet.sourceforge.net/doc-1.0.0-beta3/harbor_http.html, sorry for
the typos :-) to write your own admin pages..

I would like to see admin pages similar to those of icecast being easily
deployable. I just haven't been around writing them yet.. Or maybe someone
would like to tackle this :-)

> How can i limit simultanous connection in output harbor ? (as icecast 
> and shoutcast)

Although I was not sure this was possible initially, in fact here too the
basic bricks are available :-)

There is an auth callback for authenticating listeners, which can be a
function of your choice and an on_disconnect callback, again another
function of your choice.

Thus, if you count the number of accepted listeners in auth, substract the
number of disconnections using on_disconnect and use a reference to the
current number of listeners, you should be able to cook your own maximum
listener functionalities around output.harbor..

Romain


------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to