NET_DVR_DEV_CHAN_INFO_EX

Structure about front-end device information.

Structure Definition

struct{
  BYTE     byChanType;
  BYTE     byStreamId[STREAM_ID_LEN/*32*/];
  BYTE     byRes1[3];
  DWORD    dwChannel;
  BYTE     byRes2[24];
  BYTE     byAddress[MAX_DOMAIN_NAME/*64*/];
  WORD     wDVRPort;
  BYTE     byChannel;
  BYTE     byTransProtocol;
  BYTE     byTransMode;
  BYTE     byFactoryType;
  BYTE     byDeviceType;
  BYTE     byDispChan;
  BYTE     bySubDispChan;
  BYTE     byResolution;
  BYTE     byRes[2];
  BYTE     sUserName[NAME_LEN/*32*/];
  BYTE     sPassword[PASSWD_LEN/*16*/];
}NET_DVR_DEV_CHAN_INFO_EX,*LPNET_DVR_DEV_CHAN_INFO_EX;

Members

byChanType

Channel type: 0-normal channel, 1-channel-zero, 2-stream ID, 3-local input source

byStreamId

Stream ID, it is valid only when the byChanType is 2.

byRes1

Reserved

dwChannel

Channel No., it is valid only when the byChanType is 0, 1, 3. If the channel type is local input source, this member is the local source index No.

byRes2

Reserved

byAddress

Device IP address or domain name

wDVRPort

Device port number

byChannel

Invalid

byTransProtocol

Transfer protocol type: 0-TCP, 1-UDP

byTransMode

Stream mode: 0-main stream, 1-sub-stream

byFactoryType

Front-end device manufacturer

byDeviceType

Device type (for MVC only): 1-network camera, 2-encoding device

byDispChan

Display channel No.

bySubDispChan

Sub display channel No.

byResolution

Resolution: 1- CIF, 2- 4CIF, 3- 720P, 4- 1080P, 5- 500W

byRes

Reserved, set to 0.

sUserName

User name for log in to device.

sPassword

Device password.