Red5: Authentication - should i perform it in connect method?
Should I perform authent开发者_如何学Pythonication in connect method or should I create a separate method called authenticate
that clients can then call to authenticate themselves? note that I’ll have to connect to a mysql database to perform authentication so it might take some time doing the I/O.
I suggest that you extend ApplicationLifecycle and place your authentication logic within the appConnect method. I've used this method on several projects and it works very well. Authentication tutorial (with source): http://blog.infrared5.com/2012/05/red5-authentication/
精彩评论