几天以来,我试图让 red5 authdemo 工作(在 Eclipse Juno 中)。
见:http
://blog.infrared5.com/2012/05/red5-authentication/demo-project来源:http ://dl.dropbox.com/u/7316897/ir5/blog/red5-auth.zip
red5 服务器似乎工作正常:
...
[INFO] [Launcher:/authdemo] org.red5.demo.auth.Application - Available auth providers: 1
但是当我尝试通过 Flash Media Live Encoder 2.3 连接rtmp://localhost/authdemo时出现以下错误/异常:
[INFO] [NioProcessor-2] org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - Action connect
[INFO] [NioProcessor-2] org.red5.server.net.rtmp.RTMPHandler - Connecting to: [WebScope@66bfa709 Depth = 1, Path = '/default', Name = 'authdemo']
[INFO] [NioProcessor-2] org.red5.demo.auth.Application - W3C x-category:session x-event:connect c-ip:127.0.0.1 c-client-id:0
[INFO] [NioProcessor-2] org.red5.demo.auth.FMSAuthenticationHandler - appConnect
[INFO] [NioProcessor-2] org.red5.demo.auth.FMSAuthenticationHandler - Connection: RTMPMinaConnection from 127.0.0.1 : 53362 to 127.0.0.1 (in: 3259 out 3073 )
[ERROR] [NioProcessor-2] org.red5.server.net.rtmp.RTMPHandler - Error connecting {}
java.lang.ClassCastException: org.red5.server.net.rtmp.status.StatusObject cannot be cast to java.lang.String
at org.red5.server.net.rtmp.RTMPConnection.connect(RTMPConnection.java:284) ~[red5.jar:na]
at org.red5.server.net.rtmp.RTMPMinaConnection.connect(RTMPMinaConnection.java:87) ~[red5.jar:na]
at org.red5.server.net.rtmp.RTMPHandler.onInvoke(RTMPHandler.java:268) ~[red5.jar:na]
(...很多类似的错误消息...)
[WARN] [Red5_Scheduler_Worker-2] org.red5.server.net.rtmp.RTMPConnection - Closing RTMPMinaConnection from 127.0.0.1 : 53362 to 127.0.0.1 (in: 3259 out 3177 ), with id 1 due to long handshake
有没有人遇到过这个问题?有什么想法可以解决我的问题吗?
提前致谢!