Acquiring Audio Data From Vn-E4 Via Http; Basic Procedures - JVC VN-E4U - 4 Channel Network Encoder Api Manual

4ch network encoder
Hide thumbs Also See for VN-E4U - 4 Channel Network Encoder:
Table of Contents

Advertisement

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

2.1. Basic Procedures

1) The client establishes a TCP connection to port number 8009.
2) The client sends out API.
Example
3) VN-E4 returns a response.
Example
4) VN-E4 sends out audio data after returning the response.
5) The client disconnects TCP8009 to end the audio transmission.
2. Acquiring Audio Data from VN-E4 via HTTP
GET /api/audio?assured=1&lowdelay=0 HTTP/1.1<CRLF>
Host: 138.198.34.250<CRLF><CRLF>
HTTP/1.1 200 OK<CRLF>
Connection: Keep-Alive<CRLF>
Content-Type: audio/ulaw<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: assured=0&lowdelay=0<CRLF><CRLF>
A 512-byte u-Law data with a 12-byte header will be sent out repeatedly. Responses and u-Law data sent out
by VN-E4 are as follows.
Responses
header (12-byte)
u-law (512-byte)
header (12-byte)
u-law (512-byte)
Format of the 12-byte header is as follows. The header is made up of 3 4-byte data. The first 4 bytes
(0x00000080) indicate that the payload is an audio data.
0x00000080
No. of bytes of audio data (fixed as 512)
Time stamp (Unit: 8 kHz)
New APIs that are sent without disconnecting TCP will not be valid. To change the parameters, disconnect the
current TCP to stop data distribution, followed by sending API upon establishing a new TCP connection.
2.1. Basic Procedures
10

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vn-e4

Table of Contents