5
1. Acquiring JPEG from VN-E4 via HTTP _
1.1. Basic Procedures
1) The client establishes a TCP connection to port number 8009.
2) The client sends out API.
Example
GET /api/video?input=1&framerate=30&framesize=vga HTTP/1.1<CRLF>
Host: 10.0.0.1<CRLF><CRLF>
Note
<CRLF> denotes the line feed code (0x0A, 0x0D).
3) VN-E4 returns a response.
Example
HTTP/1.1 200 OK<CRLF>
Connection: Keep-Alive<CRLF>
Content-Length: 27616<CRLF>
Content-Type: image/jpeg<CRLF>
Date: Fri, 13 MAY 2005 07:33:12 GMT<CRLF>
Server: VN-E4 Jpeg & Audio Server/1.0.0<CRLF>
Keep-Alive: timeout=5, max=5<CRLF>
x-vne4_response:
input=1&framesize=vga&framerate=30&header=0&assured=0&sendbuffer=16<CRLF>
<CRLF>
4) VN-E4 sends out JPEG data after returning the response.
JPEG files will be sent out continuously. Responses and JPEG data sent out by VN-E4 are as follows.
A 12-byte header will be added to the beginning of the JPEG file when header=1 is specified in the API
parameter.
Details on the header structure and JPEG file format will be explained later.
5) When the client wants to stop current JPEG transmission, the client disconnects TCP8009.
VN-E4 does not accept further API via current TCP that is used for JPEG transmission. To change parameters,
disconnect current TCP to stop the JPEG transmission, connect new TCP, and send API with new parameter.
1.1. Basic Procedures
Responses
JPEG (No. 1)
JPEG (No. 2)
Responses
header (12-byte)
JPEG (No. 1)
header (12-byte)
JPEG (No. 2)
1. Acquiring JPEG from VN-E4 via HTTP