Hi David,
[EMAIL PROTECTED] wrote:
> I believe I could authenticate a client when it connects because the
> connection (and is client) is passed to the ApplicationAdapter's
> appConnect() method. But when you call a method from the flash client,
> the RTMPHandler's invokeCall() doesn't forward the connection (and
> client) to the method. How do I know who is executing that method? Do
> I need to modify the Red5 code? Is there a way to inject a check at
> the RTMPHandler via AOP? Do these questions make sense? :)
You can use the Red5 object to access the current connection and client
from your method.
Example:
import org.red5.server.api.IClient;
import org.red5.server.api.IConnection;
import org.red5.server.api.Red5;
...
public void myMethod() {
IConnection conn = Red5.getConnectionLocal();
IClient = conn.getClient();
...
}
Joachim
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org