Hi!

2013/2/21 Tony Miller <mcfiredr...@gmail.com>:
> Thanks a lot! I think I understand now.
> Hmm so it doesn't look like I get much info from the headers:
>
> 2013/02/20 22:49:00 [lang:3] harbor connect
> 2013/02/20 22:49:00 [lang:3] header: Authorization: Basic c291cmNlOmhhY2ttZQ==
> 2013/02/20 22:49:00 [lang:3] header: User-Agent: libshout/2.0.0
> 2013/02/20 22:49:00 [lang:3] header: Content-Type: application/ogg
> 2013/02/20 22:49:00 [lang:3] header: ice-name: no name
> 2013/02/20 22:49:00 [lang:3] header: ice-public: 0
>
> Is there no way to pass any arbitrary data to the on_connect function?
> (Aside from modifying my source client...)
> I'd like to set certain metadata when I recieve a connection from the
> harbor. (Like setting the title to the name of the dj that
> connects...) If I could at the very least get the mount name?
>
> If not, I'm sure I can change my architecture to solve this problem in
> a different way. I could register a different on_connect
> function for each harbor source I guess.
>
> Maybe I'm trying to accomplish this in a silly way.

It's not silly at all but unless you find a way to insert arbitrary
headers into your source client connection then I don't see any other
way this can be achieved..

BTW output.icecast can add those headers if you want to use liquidsoap
for the source client :-)

Ha, another potential solution could be to use user and/or password to
match with the user against your database, if you have one..

Romain

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to