Api format, Structure, Parameter description – JVC 4ch Network Encoder VN-E4 User Manual

Page 11: Structure parameter description, Api format structure

Advertising
background image

11

2. Acquiring Audio Data from VN-E4 via HTTP _

2.2. API Format

Structure

Unlike parameter acquisition/setting, Accept line is not required. Basic authentication is also not necessary.

Example

GET /api/audio?assured=1&lowdelay=0 HTTP/1.1<CRLF>

Host: 138.198.34.250<CRLF><CRLF>

Parameter values are indicated using =. Do not insert space before and after =.
Example assured=1
Parameters are segmented using &. Do not insert space before and after &.
Example assured=1&lowdelay=0
There is no need to specify all parameters. Default values will be used for parameters that are not specified.

Parameter Description

assured

VN-E4 temporarily saves up to 2.5 seconds of the compressed data. Specify as assured=0 to request for the
latest data that is temporarily saved and assured=1 to request for the oldest data. Specify as assured=0 to
shorten the audio delay time. To enable stable playback in a network where jitter occurs, it is recommended
that this be specified as assured=1. Default value is 1.

lowdelay

Specifying as lowdelay=1 disables the Nagle algorithm of TCP, and audio delay time will be shortened. When
lowdelay=0 is specified, the Nagle algorithm is enabled and audio delay time will be prolonged. However,
transmission overhead will be enhanced. Default value is 1.

2.2. API Format

GET

Space

API Character String

Space

HTTP/1.1

0x0D 0x0A

Host:

Space

IP Address of VN-E4

0x0D 0x0A 0x0D 0x0A

Advertising