Eric, anyway, client.getId() returns a String not an int.
In this tutorial, you pass (through nc.connect method) user and pass and 
get it on the server.

    
http://www.newviewnetworks.com/nvnhome/blog/client/index.cfm/2006/5/22/Red5-Adding-Authentication-to-your-Red5-Application

On other hand...

    org.red5.server.Client class inherits a method public boolean 
setAttribute(String name, Object value);

An idea; i haven't checkout yet but you can try to pass your custom_id 
in Object[] params  [ nc.connect("rtmp://localhost/gg","eric"); ]


    String user_name = "";

    public boolean appConnect(IConnection conn, Object[] params){
          user_name = (String)params[0];
    ...

    public boolean appJoin(IClient client, IScope app)
           client.setAttribute("name",user_name);
    ...

And then get  client.getAttribute("name"); on each element of the 
IClient Set

Eric C escribió:
> only thing left is to figure out how to pass the user identifier 
> myself.... nc.connect("rtmp://localhost/gg", 123, 456, 789); doesn't 
> successfully pass any of those values as our id...

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to