[Red5] calling client side methods using service.invoke() for a single user - is there a better way than iteration through a client list of the room ....
robschoenaker at sensemakers.com
Thu Aug 16 02:46:59 PDT 2007
>as far as i understand this will give me the connection of the current
That's what it does, yes
>I am interested in the connection of another user
>Ideally something like Red5.getConnections(String clientId);
What I do in our server is maintain a list of specific connections I
with for these kind of functionality. I add items on appConnect and
remove them on appDisconnect. Then, I can iterate the maintained list
and invoke the method I need.
This prevents from excessive iterating through the internal Red5 lists.
More information about the Red5