|
Client → Server : Sends Handshake Request. This is not a protocol packet but a single byte (0×03) followed by 1536 bytes. This content does not seem to be vital for the protocol, but is not random either. See 1)
Server → Client : Sends a Handshake Response. This is not a RTMP packet but a single byte (0×03) followed by two 1536 byte chunks (so a total of 3072 raw bytes). The second chunk of bytes is the original client request bytes sent in handshake request. The first chunk can be anything. Use null bytes it doesnt seem to matter.
Client→Server: Sends 1536 raw bytes which are the second 1536 chunk of server generated handshake.
At this time, handshake is done and further packets are RTMP ones.
Client → Server : send the Connect RTMP packet.
Server → Client : Server responds
|