[Red5] Securing red5 rtmp method calls

xk su suxuekun at gmail.com
Tue Feb 2 17:43:01 PST 2010


something like this?

public boolean somefunction(Object obj)
{
    IConnection currentconn = Red5.getConnectionLocal();
    IScope currentscope = currentconn.getScope();
    if (currentscope is allowed)//build up your own business in server side
so that you can check it
    {
        //do something

        IServiceCapableConnection sc=(IServiceCapableConnection)conn;
        sc.invoke("callbackfunction",params);
        return true;
    }else{
        return false;
    }
}
// if you use responder:Responder = new Responder(result)
// and do like netDelegate.nc.call("somefunction",responder,params);
// private function
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://osflash.org/pipermail/red5_osflash.org/attachments/20100203/18ad8f78/attachment.html>


More information about the Red5 mailing list