JVC VN-E4U API Guide - Page 5

Acquiring JPEG from VN-E4 via HTTP, 1.1. Basic Procedures

Page 5 highlights

1. Acquiring JPEG from VN-E4 via HTTP 1. Acquiring JPEG from VN-E4 via HTTP _ 1.1. Basic Procedures 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 Host: 10.0.0.1 Note denotes the line feed code (0x0A, 0x0D). 3) VN-E4 returns a response. Example HTTP/1.1 200 OK Connection: Keep-Alive Content-Length: 27616 Content-Type: image/jpeg Date: Fri, 13 MAY 2005 07:33:12 GMT Server: VN-E4 Jpeg & Audio Server/1.0.0 Keep-Alive: timeout=5, max=5 x-vne4_response: input=1&framesize=vga&framerate=30&header=0&assured=0&sendbuffer=16 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. Responses JPEG (No. 1) JPEG (No. 2) A 12-byte header will be added to the beginning of the JPEG file when header=1 is specified in the API parameter. Responses header (12-byte) JPEG (No. 1) header (12-byte) JPEG (No. 2) 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. 5

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80

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