Open lgjx123 opened 8 years ago
I think some of the formatting is messed up in your post; its a little hard to follow.
Maybe this might be filed as PR with Test and the fix?
Test your code against 1.0.8-M8, it has AMF decoding fixes
client still unable to connect to RTMPS in tunneled mode :( going to check native later
On Tue, Aug 16, 2016 at 1:31 AM, Paul Gregoire notifications@github.com wrote:
Test your code against 1.0.8-M8, it has AMF decoding fixes
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Red5/red5-client/issues/35#issuecomment-239886903, or mute the thread https://github.com/notifications/unsubscribe-auth/ADsPf3O7XB9Xb9sdp5DhGwKejByFcDdmks5qgLCfgaJpZM4JaNUV .
WBR Maxim aka solomax
src/main/java/org/red5/client/net/rtmp/BaseRTMPClientHandler.java onCommand method
if ("connect".equals(methodName))
is unreach code, it should beif ("connect".equals(pendingCall.getServiceMethodName()))
server use these code to send data to client (org.red5.server.net.rtmp.codec.RTMPProtocolEncoder encodeCommand(IoBuffer out, ICommand command))
and decode data like this( org.red5.server.net.rtmp.codec.RTMPProtocolDecoder decodeInvoke(Encoding encoding, IoBuffer in) )
red5-client will thrown decode error cause
Serializer.serialize(output, command.getConnectionParams());
(still AMF0 but skip) when use AMF3.Now I try to override decodeInvoke method in RTMPClientProtocolDecoder ` @Override public Invoke decodeInvoke(Encoding encoding, IoBuffer in) {
} `
` /* * Sets incoming connection parameters and / or returns encoded parameters for use in a call. * * @param in * @param notify * @param input * @return parameters array / private Object[] clientHandleParameters(Encoding encoding,IoBuffer in, Notify notify, Input input) {
` and it fixed the decode error.