Class RTMPClientProtocolDecoder

java.lang.Object
org.red5.server.net.rtmp.codec.RTMPProtocolDecoder
org.red5.client.net.rtmp.codec.RTMPClientProtocolDecoder
All Implemented Interfaces:
IEventDecoder, Constants

public class RTMPClientProtocolDecoder extends RTMPProtocolDecoder
Class to specifically handle the client side of the handshake routine.
  • Constructor Details

    • RTMPClientProtocolDecoder

      public RTMPClientProtocolDecoder()
  • Method Details

    • decodeHandshakeS1

      public org.apache.mina.core.buffer.IoBuffer decodeHandshakeS1(RTMPConnection conn, RTMPDecodeState state, org.apache.mina.core.buffer.IoBuffer in)
      Decode first server response S1.
      Parameters:
      conn - connection
      state - decode state
      in - incoming data
      Returns:
      server handshake bytes for S1 or null
    • decodeHandshakeS2

      public org.apache.mina.core.buffer.IoBuffer decodeHandshakeS2(RTMPConnection conn, RTMPDecodeState state, org.apache.mina.core.buffer.IoBuffer in)
      Decode second server response S2.
      Parameters:
      conn - connection
      state - decode state
      in - incoming data
      Returns:
      null