67
6. API for Sending JPEG/Audio from VN-E4 via UDP _
6.2. List of APIs
(2) Stopping JPEG/RTP/UDP Sending from VN-E4
Format
/api/stop?to.session_id=data
Example
/api/stop?to.session_id=12345678
Specify session_id with the same value as when send is used. All JPEG sending will be terminated when
session_id=* is specified.
Interpretation
Stop JPEG/RTP/UDP sending from VN-E4.
Allowed users
admin, operator
Example of Response:
HTTP/1.1 200 OK<CRLF>
Date: Fri, 13 MAY 2005 07:33:12 GMT<CRLF>
Server: VN-E4 API Server/1.0.0<CRLF>
Connection: Keep-Alive<CRLF>
content-type: text/plain<CRLF>
Connection: Keep-Alive<CRLF>
Keep-Alive: timeout=5, max=5<CRLF>
x-vne4_response: to.session_id=12345678<CRLF><CRLF>
200 OK<CRLF>
(3) Sending Audio (u-Law) from VN-E4 via RTP/UDP
Format
/api/send?from=audio&to=network&to.ip=data1&to.port=data2&to.session_id
=datda3
Example
/api/send?from=audio&to=network&to.ip=225.0.1.1&to.port=20002&to.session_
id=12345679
to.ip
Specify the destination IP address.
to.port
Specify the destination port number.
to.session_id
Specify the client IP number. VN-E4 will register this number and accept the client with the same API (stop).
session_id=* that the stop command supports will not be accepted.
Interpretation
Send u-Law from VN-E4 via RTP/UDP. u-law data with a 12-byte RTP header will be sent out repeatedly.
Allowed users
admin, operator
Example of Response
HTTP/1.1 200 OK<CRLF>
Date: Fri, 13 MAY 2005 07:33:12 GMT<CRLF>
Server: VN-E4 API Server/1.0.0<CRLF>
Connection: Keep-Alive<CRLF>
content-type: text/plain<CRLF>
Connection: Keep-Alive<CRLF>
Keep-Alive: timeout=5, max=5<CRLF>
x-vne4_response:
from=audio&to=network&to.ip=225.0.1.1&to.port=20002&to.session_id=1234567
9<CRLF><CRLF>
200 OK<CRLF>
Restrictions
The total number of RTP/UDP that may be sent by VN-E4 is 10 streams (including both JPEG and audio). A
"503 Service Unavailable" message will be returned in the body of the response when an 11th RTP/UDP
sending request is received.
Example of response when an 11th sending request is received:
HTTP/1.1 200 OK<CRLF>
Date: Fri, 13 MAY 2005 07:33:12 GMT<CRLF>
Server: VN-E4 API Server/1.0.0<CRLF>
Connection: Keep-Alive<CRLF>
content-type: text/plain<CRLF>
Connection: Keep-Alive<CRLF>
Keep-Alive: timeout=5, max=5<CRLF>