89
23-24
Bit Rate
The audio bit rate.
0x02 (02): 2 KbytesPerSecond
0x04 (04): 4 KbytesPerSecond
0x08 (08): 8 KbytesPerSecond
25
Version
The version number.
It is 0x02 (02).
26-45 Time
String
The ASCII string to present the current camera time. (Not
used)
46 Padding
flag
The padding flag
0x00: No padding data
0x01: There is the padding data at the end of the frame,
please refer to chapter “
Padding data format
” for details
47 Reserved
Reserved
Example, A normal JPEG frame:
Image size is 5930, width is 320, height is 240, sent data size is 2000, slice size is 2000,
timestamp is 0, frame type is 1 (JPEG), version number is 1. The header will look like as
follows:
4D 4A 50 47 2A 17 00 00 40 01 F0 00 D0 07 00 00
D0 07 00 00 00 00 01 02 00 02 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
(2000 bytes JPEG data)
We will regard others client as the PushServer.
HTTP/1.0 200 OK\r\n
…
content-type: multipart/x-mixed-released;boundary=<xxx>\r\n
--<xxx>
content-type:image/jpeg\r\n
content-length: <image-size>\r\n\r\n
<jpeg image date>
--<xxx>
content-type:image/jpeg\r\n
content-length: <image-size>\r\n\r\n
<jpeg image date>
...
--<boundary>--
Return (
ERROR
situation):
HTTP/1.0 400 Bad Request\r\n