To invoke a method on a client from the server, you follow the same idea.

You create a client object on the NetConnection that connected to the 
Red5 server. Add the methods that you want to have access to from the 
server to this object.

 From the server side, you can call all these methods by getting hold of 
the user on the server side. You need to do this by keeping track of all 
your users and the IConnection they're connected to. You can invoke a 
method on the client by calling a connection.invoke(method, args) on the 
connection.

Hope this helps!

-Niels

Nauman Nasir wrote:
> Hi!
>
> The way to call method of the server from the client is 
> nc.call("method",parameters);
> now i am searching for how to invoke a method of client from the 
> server, if anyone knows plz tell me.
> and also how to invoke the method of all connected clients... 
> -- 
> *************************************************
> The life is too short to Love.
>   I donot know how people manage to hate
> *************************************************
>                              Ch. Nauman Bin Nasir
> ------------------------------------------------------------------------
>
> _______________________________________________
> Red5 mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/red5_osflash.org
>   


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

Reply via email to