JVC VN-E4U API Guide - Page 11

API Format, Structure, Parameter Description

Page 11 highlights

2. Acquiring Audio Data from VN-E4 via HTTP _ 2.2. API Format 2.2. API Format Structure GET Host: Space Space API Character String IP Address of VN-E4 Space HTTP/1.1 0x0D 0x0A 0x0D 0x0A 0x0D 0x0A 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 Host: 138.198.34.250 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. 11

  • 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

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