Api for sending jpeg/audio from vn-e4 via udp, Procedure – JVC 4ch Network Encoder VN-E4 User Manual

Page 65

Advertising
background image

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

6. AP

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

Advertising