JVC VN-E4U API Guide - Page 65

Procedure, Space, API Character String, 0x0D 0x0A, Accept, text/plain or text/html

Page 65 highlights

6. API for Sending JPEG/Audio from VN-E4 via UDP _ 6.1. Procedure This section describes the API for sending JPEG or audio data via UDP. Make use of the APIs explained in this section in the way as mentioned in Section 4. VN-E4 allows sending of up to 10 streams of JPEG/audio data. This includes HTTP sending based on client request, manual sending from the WEB setting page as well as UDP sending via API. An error will be returned for the API if 10 streams of data are currently being sent. 6.1. Procedure 1) The client establishes a TCP connection to port number 80. 2) The client sends out API via TCP. Character strings of the following structure will be sent out. GET Space Accept Space Host: Space Authorization: Basic API Character String Space HTTP/1.1 0x0D 0x0A text/plain or text/html 0x0D 0x0A IP Address of VN-E4 0x0D 0x0A Space User Name and Password 0x0D 0x0A 0x0D 0x0A The API format when specifying using GET is as follows. /api/cmd?ParamA=Data&ParamB=Data&ParamC=Data Refer to Section 4 on details of the Accept and Authorization lines. 3) VN-E4 returns a response to the client. 4) Perform the action as instructed by VN-E4 (start or stop JPEG/audio sending). 5) The client can disconnect TCP80 to end the use of API. 65

  • 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

65
6. API for Sending JPEG/Audio from VN-E4 via UDP _
6.1. Procedure
This section describes the API for sending JPEG or audio data via UDP. Make use of the APIs explained in this section in the way as
mentioned in Section 4.
VN-E4 allows sending of up to 10 streams of JPEG/audio data. This includes HTTP sending based on client request, manual sending from the
WEB setting page as well as UDP sending via API. An error will be returned for the API if 10 streams of data are currently being sent.
1) The client establishes a TCP connection to port number 80.
2) The client sends out API via TCP.
Character strings of the following structure will be sent out.
The API format when specifying using GET is as follows.
/api/cmd?ParamA=Data&ParamB=Data&ParamC=Data
Refer to Section 4 on details of the Accept and Authorization lines.
3) VN-E4 returns a response to the client.
4) Perform the action as instructed by VN-E4 (start or stop JPEG/audio sending).
5) The client can disconnect TCP80 to end the use of API.
6.1. Procedure
GET
Space
API Character String
Space
HTTP/1.1
0x0D 0x0A
Accept
Space
text/plain or text/html
0x0D 0x0A
Host:
Space
IP Address of VN-E4
0x0D 0x0A
Authorization: Basic
Space
User Name and Password
0x0D 0x0A 0x0D 0x0A