w w w . s m a x . c o m . t w
Chapter 6.
P 76
6.1.5.2. Audio (Camera to PC)
Syntax:
---------------------------------------------------------------------------
http://<servername>/cgi/audio/audio.cgi? type=uLaw
---------------------------------------------------------------------------
Return:
succeed
HTTP/1.1 200 OK\r\n
Content-Type: multipart/
mixed;boundary=myboundary\r\n
\r\n
--myboundary\r\n
Content-Length: <content length>\r\n
\r\n
<Payload Header>
<Payload Data>
--myboundary\r\n
Content-Length: <content length>\r\n
\r\n
<Payload Header>
<Payload Data>
….
FAIL
HTTP/1.1 503 Service Not Available\r\n
Content-Length: 0\r\n
\r\n
6.1.5.3. Audio (Talk:PC to IP video device)
Returns a multipart audio stream. Open a
IPPROTO_UDP socket and assign this socket to
port 5432.
Audio support u-Law Data only.
Payload Format:
Byte0
Byte1
Byte2
Byte3
Byte4
Byte5
0x80
0x80
0x10
0x8c
0x00
0x30
Header (12Bytes)
u-Law Data (1024 Bytes)
Header Content:
Byte6
Byte7
Byte8
Byte9
Byte10
Byte11
0x56
0x9c
0xab
0x45
0xa2
0x07