Basic procedures – JVC VN-V686UAPI User Manual
Page 5
![background image](/manuals/130694/5/background.png)
1. Getting JPEG from VN-V686 via HTTP
1.1. Basic Procedures
1) The client establishes a TCP connection to port number 80.
2) The client sends out API.
Example
GET /api/video?encode=jpeg&framerate=30&boundary=on&ptz_info=off
HTTP/1.1
Host: 192.168.0.2
Note
0x0D, 0x0A
).
3) VN-V686 returns HTTP response.
Example
HTTP/1.1 200 OK
Connection: close
Content-type: multipart/x-mixed-replace;boundary=-foo
Date: Tue, 02 Oct 2007 07:33:12 GMT
Server: JVC VN-V686 Network Camera
x-vnv25_response:
encode=jpeg&framerate=30&framesize=vga&boundary=on&ptz_info=off
4) VN-V686 sends out JPEG data after returning HTTP response.
JPEG files with boundary structure will be sent out continuously after HTTP Response as follows. Content-Length
in boundary structure shows file size of each JPEG file. Using the size, reading the whole JPEG data becomes easy.
5
HTTP Response
JPEG (No. 1)
JPEG (No. 2)
JPEG (No. 1)
-foo
Content-Type: image/jpeg
Content-Length: 31614
-foo
Content-Type: image/jpeg
Content-Length: 32756