V2_PORT_RTSP, V2_PORT_RTP_MULTI_VIDEO, V2_PORT_RTP_MULTI_AUDIO
Description
Get or Set device's RTSP server port number and the multicast port numbers for multicast video and audio RTP streams. When write, the port number will be checked if it was used from other applications. The video and audio RTP ports have to be even ports.
V2_PORT_RTSP
If the CHANNEL=n was not set with this URL to the Multi-Channel device, this will set the part base of all channels. The RTSP port of the CHANNEL n will be the RTSP port base + 2 * (n -1). For example, the V2_PORT_RTSP=7070 will set the base of RTSP port to 7070. Then, the RTSP port of CHANNEL 1 is 7070, the control port of CHANNEL 2 is 7072.
V2_PORT_RTP_MULTI_VIDEO, V2_PORT_RTP_MULTI_AUDIO
If the CHANNEL=n was not set with this URL to the Multi-Channel device, this will set the port base of all channels. The multicast port of all CHANNELs will be this multicast port. For example, the V2_PORT_RTP_MULTI_VIDEO=5000 and V2_PORT_RTP_MULTI_AUDIO=5002 will set the RTP multicast port of all CHANNEL to 5000 for video and 5002 for audio.
Input Argument
URL Commnd Name Description V2_PORT_RTSP TCP port number, 1~65535 V2_PORT_RTP_MULTI_VIDEO even UDP port number, 2~65534 V2_PORT_RTP_MULTI_AUDIO even UDP port number, 2~65534
Attribute
Return of Message
V2_PORT_RTSP='7007'
V2_PORT_RTP_MULTI_VIDEO='5000'
V2_PORT_RTP_MULTI_AUDIO='5002'
OK: V2_PORT_RTSP='7007'
OK: V2_PORT_RTP_MULTI_VIDEO='5000'
OK: V2_PORT_RTP_MULTI_AUDIO='5002'
or
ERROR: V2_PORT_RTSP='7007'
ERROR: V2_PORT_RTP_MULTI_VIDEO='5000'
ERROR: V2_PORT_RTP_MULTI_AUDIO='5002'
Applicability
Status
Valid
See Also
PORT, PORT_HTTP, PORT_SEARCH_1, PORT_SEARCH_2, PORT_SEARCH, PORT_REGISTER, PORT_CONTROL, PORT_VIDEO, PORT_MULTICAST
Example
http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&V2_PORT_RTSP
http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&V2_PORT_RTP_MULTI_VIDEO
http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&V2_PORT_RTP_MULTI_AUDIO
or
http://ip:port/cgi-bin/cmd/system?V2_PORT_RTSP
http://ip:port/cgi-bin/cmd/system?V2_PORT_RTP_MULTI_VIDEO
http://ip:port/cgi-bin/cmd/system?V2_PORT_RTP_MULTI_AUDIO
http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&V2_PORT_RTSP=7070
http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&V2_PORT_RTP_MULTI_VIDEO=5000
http://ip:port/cgi-bin/system?USER=Admin&PWD=123456&V2_PORT_RTP_MULTI_AUDIO=5002
or
http://ip:port/cgi-bin/cmd/system?V2_PORT_RTSP=7070
http://ip:port/cgi-bin/cmd/system?V2_PORT_RTP_MULTI_VIDEO=5001
http://ip:port/cgi-bin/cmd/system?V2_PORT_RTP_MULTI_AUDIO=5002
Back to