Add or remove the specific channel to or from the decoder's channel list.
In this URL, the decoder will not check if the channel is alive or not. The users should be sure of the availability of the channels before add the channel to the decoder's channel list. The configuration of the channel is created by the URL CHANNEL_CONFIG in decoder CGI.
If there is no input argument, the decoder will return the channels in the channel list. For example, the return message of this URL is
SET_CHANNEL=1,2,3,6,8
where channel 1, 2, 3, 6, 8 are in the channel list and decoder will connect to these channels sequentially.
If these is no channel in the channel list, the SET_CHANNEL=NONE will be returned.
None (read command)
or
command,channel (write command)
where
command: it could be ADD (add the channel to the channel list), DEL (remove the channel form the channel list).
channel: the channel ID in the channel list. The range of channel is from 1~16.
SET_CHANNEL='NONE'
OK: SET_CHANNEL='ADD,1'
or
ERROR: invalid parameters
Valid
VIDEO_STREAM, SET_CHANNEL, CHANNEL_CONFIG, CHANNEL_SWITCH, CHANNEL_VARIABLE_FPS, CHANNEL_TIME, CHANNEL_INFO, CHANNEL_SWITCH
http://ip:port/cgi-bin/decoder?USER=Admin&PWD=123456&SET_CHANNEL
or
http://ip:port/cgi-bin/cmd/decoder?SET_CHANNEL
http://ip:port/cgi-bin/decoder?USER=Admin&PWD=123456&SET_CHANNEL=ADD,1
or
http://ip:port/cgi-bin/cmd/decoder?SET_CHANNEL=ADD,1