0 Replies Latest reply on Nov 19, 2009 5:03 PM by gngnut

    RTMP Message Header

    gngnut

      Hi,

      I am kind of confused on one part of the spec, RTMP Message Formats, draft-rtmp-01.txt, June 2009.  It is section 4.1, is this Message Header part of the "chunk data" or is it part of the "chunk message header"?

       

      I tried to decode the following packet (from wireshark)

       

      0040           02 00 00 00 00 00 04 01 00 00 00 00 00 00   .Z..............
      0050  10 00 02 00 00 00 00 00 06 04 00 00 00 00 00 00   ................
      0060  00 00 00 01 04 00 00 00 00 00 94 14 01 00 00 00   ................
      0070  02 00 08 6f 6e 53 74 61 74 75 73 00 00 00 00 00   ...onStatus.....
      0080  00 00 00 00 05 03 00 05 6c 65 76 65 6c 02 00 06   ........level...
      0090  73 74 61 74 75 73 00 04 63 6f 64 65 02 00 14 4e   status..code...N
      00a0  65 74 53 74 72 65 61 6d 2e 50 6c 61 79 2e 52 65   etStream.Play.Re
      00b0  73 65 74 00 0b 64 65 73 63 72 69 70 74 69 6f 6e   set..description
      00c0  02 00 1a 50 6c 61 79 69 6e 67 20 61 6e 64 20 72   ...Playing and r
      00d0  65 73 65 74 74 69 6e 67 20 6b 74 76 2e 00 07 64   esetting ktv...d
      00e0  65 74 61 69 6c 73 02 00 03 6b 74 76 00 08 63 6c   etails...ktv..cl
      00f0  69 65 6e 74 69 64 02 00 08 6c 53 42 59 30 6c 4b   ientid...lSBY0lK
      0100  51 00 00 09                                       Q...

       

      ====

      02 00 00 00 00 00 04 01 00 00 00 00 00 00 10 00  => 02: control packet and chunk header is 11 bytes, 04: data length, 01: set chunk size,

                                                                                     00 00 10 00: this is chunk size value.

       

      However, if I try to decode the above based on section 4.1 and 5.1 in the aforementioned spec. it just doesn't work..I know I am missing something.

      Any pointers and help would be greatly appreciated. thanks.

       

      Regards,

      Albert

       

       

       

      Regards,

      Albert