Digital channel information structure
struct{
BYTE byEnable;
BYTE byProType;
BYTE byZeroChan;
BYTE byPriority;
BYTE sUserName[NAME_LEN/*32*/];
BYTE sPassword[PASSWD_LEN/*16*/];
BYTE byDomain[MAX_DOMAIN_NAME/*64*/];
NET_DVR_IPADDR struIP;
WORD wDVRPort;
BYTE byStreamType;
BYTE byOnline;
DWORD dwChannel;
BYTE byTransProtocol;
BYTE byLocalBackUp;
WORD wDirectLastTime;
BYTE byChanNo[CHAN_NO_LEN/*24*/];
}NET_DVR_DIRECT_CONNECT_CHAN_INFO, *LPNET_DVR_DIRECT_CONNECT_CHAN_INFO;
Whether to enable: 0-no, 1-yes.
Protocol type, refer to the structure NET_DVR_PROTO_TYPE for details, by default, the protocol type is 0-private protocol.
Whether it is channel-zero: 0-no, 1-yes.
Priority, whose value is between 1 and 5.
User name.
Password.
Device domain name.
Device IP address, refer to the structure NET_DVR_IPADDR_UNION for details.
Device port No.
Stream type: 0-main stream, 1-sub-stream
Online status (read-only): 0-offline, 1-online.
Channel No.
Transport protocol type: 0-TCP, 1-UDP, 2-multi-slot
Whether to enable local backup: 0-no, 1-yes.
Broadcast time duration, unit: second, the value range should be obtained via capability.
Channel No. for getting stream via VAG.