Hi ! i've tried to set a custom id for a client, as mentionned in the Client getId() doc :
"Get the unique ID for this client. This will be generated by the server if not passed upon connection from client-side Flex/Flash app. To assign a custom ID to the client use |params| object of |IApplication.appConnect(IConnection, Object[])| <http://dl.fancycode.com/red5/api/org/red5/server/adapter/IApplication.html#appConnect%28org.red5.server.api.IConnection,%20java.lang.Object%5B%5D%29> method, that contains 2nd all the rest values you pass to |NetConnection.connect| method. Example: At client side: |NetConnection.connect( "http://localhost/killerapp/", "user123" );| then at server side: public boolean appConnect( IConnection connection, Object[] params ){ | try { connection.getClient().setStreamId( params[0] ); } catch(Exception e){ log.error(e); } } | " but this doesn't work, setStreamId is not defined for Client I also tried with setAttribute() myClient.setAttribute("id", myCustomStringId); but doesn't work as weel is this a bug? or something i've done wrong ? 'cause this error is reported here : http://osflash.org/pipermail/red5_osflash.org/2006-December/008021.html and also here (french) http://flash.mediabox.fr/index.php?showtopic=71459 thanks for help Pierre Augier _______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
