Hi,folks. I'm new to RTMP and I've read Mick's great result about RTMP. Thanks Mick. I noticed that in the connect call (the first AMF object),there's a length byte before each string,like:
00000BFD fc 00 2d 00 03 00 00 00 00 00 e5 14 00 00 00 00 ..-..... ........ 00000C0D 02 00 07 63 6f 6e 6e 65 63 74 00 3f f0 00 00 00 ...conne ct.?.... 00000C1D 00 00 00 03 00 03 61 70 70 02 00 04 74 65 73 74 ......ap p...test 00000C2D 00 08 66 6c 61 73 68 56 65 72 02 00 0c 57 49 4e ..flashV er...WIN 00000C3D 20 39 2c 30 2c 31 36 2c 30 00 06 73 77 66 55 72 9,0,16, 0..swfUr 00000C4D 6c 02 00 1d 66 69 6c 65 3a 2f 2f 48 3a 5c 70 32 l...file ://H:\p2 00000C5D 70 66 6c 61 73 68 5c 63 6c 69 65 6e 74 2e 73 77 pflash\c lient.sw 00000C6D 66 00 05 74 63 55 72 6c 02 00 1a 72 74 6d 70 3a f..tcUrl ...rtmp: 00000C7D 2f 2f 32 31 39 2e 31 33 33 2e 35 39 2e 31 30 35 //219.13 3.59.105 00000C8D c3 2f 74 65 73 74 00 04 66 70 61 64 01 00 00 0b ./test.. fpad.... 00000C9D 61 75 64 69 6f 43 6f 64 65 63 73 00 40 83 38 00 audioCod [EMAIL PROTECTED] 00000CAD 00 00 00 00 00 0b 76 69 64 65 6f 43 6f 64 65 63 ......vi deoCodec 00000CBD 73 00 40 53 00 00 00 00 00 00 00 07 70 61 67 65 [EMAIL PROTECTED] ....page 00000CCD 55 72 6c 02 00 1d 66 69 6c 65 3a 2f 2f 48 3a 5c Url...fi le://H:\ 00000CDD 70 32 70 66 6c 61 73 68 5c 63 6c 69 65 6e 74 2e p2pflash \client. 00000CED 73 77 66 00 00 09 swf... In line '00000C0D' ,the 3rd byte is '07',followed by string 'connect', the followed by byte '00' and so on. But sometimes there's an extra byte like '02' following 'flashV er' and byte '00' in line '00000C2D'. What these extra bytes mean? Thanks in advance. Fang Yidong -- JSON: Action in AJAX! JSON - http://www.json.org JSON.simple - http://www.json.org/java/simple.txt _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
