0
我想實現一個Java客戶端的應用RED5,它實現了一個簡單的視頻聊天。我爲應用程序實現了一個Flash客戶端,並且Flash客戶端一切正常。 對於java客戶端,我嘗試使用RTMPClient類建立到服務器的連接。在服務器端沒有任何事情發生,客戶端產生以下輸出。Red5的Java客戶端連接
Java版本:1.6 RED5版本:1.0.0
代碼連接到RED5服務器:
RTMPClient c = new RTMPClient();
c.connect("server", 5080, "app");
輸出Java客戶端:
[NioProcessor-2] DEBUG o.r.s.net.rtmp.RTMPMinaIoHandler - Session created
[NioProcessor-2] DEBUG o.r.s.net.rtmp.RTMPClientConnManager - Creating connection, class: org.red5.server.net.rtmp.RTMPMinaConnection
[NioProcessor-2] DEBUG org.red5.server.BaseConnection - New BaseConnection - type: persistent
[NioProcessor-2] DEBUG o.r.s.net.rtmp.RTMPMinaConnection - RTMPMinaConnection created
[NioProcessor-2] DEBUG o.r.s.net.rtmp.RTMPClientConnManager - Connection id set 1
[NioProcessor-2] DEBUG o.r.s.net.rtmp.RTMPClientConnManager - Connection added to the map
[NioProcessor-2] DEBUG o.r.server.net.rtmp.RTMPConnection - Set state: RTMP [state=connect, client-mode=true, debug=false, encrypted=false, lastReadChannel=0, lastWriteChannel=0, readHeaders={}, writeHeaders={}, readPacketHeaders={}, readPackets={}, writePackets={}, writeTimestamps={}, liveTimestamps={}, readChunkSize=128, writeChunkSize=128, encoding=AMF0]
[NioProcessor-2] DEBUG o.red5.server.net.rtmp.RTMPHandshake - Handshake ctor
[NioProcessor-2] DEBUG o.r.s.net.rtmp.RTMPMinaIoHandler - Session opened
[NioProcessor-2] DEBUG o.r.s.net.rtmp.RTMPMinaIoHandler - Handshake - client phase 1
[NioProcessor-2] DEBUG o.red5.server.net.rtmp.RTMPHandshake - generateClientRequest1
[NioProcessor-2] DEBUG o.r.s.net.rtmp.RTMPMinaIoHandler - messageSent
[NioProcessor-2] DEBUG o.r.server.net.rtmp.BaseRTMPHandler - Message sent
Thx提前