Партнерка на США и Канаду по недвижимости, выплаты в крипто
- 30% recurring commission
- Выплаты в USDT
- Вывод каждую неделю
- Комиссия до 5 лет за каждого referral
User Manual v.1.0.2
HDVR_SDK
Contents
I. Instruction.. 4
1. Graphic Card Requirement.. 4
2. Function.. 4
3. Receive Mode.. 4
4. Connection Information.. 5
5. System Information.. 5
6. Event Information.. 6
7. Name Information.. 6
8. Video Setup Information.. 7
9. PTZ Setup Information.. 7
10. Motion Setup Information.. 8
11. Record Setup Information.. 8
12. Alarm Setup Information.. 9
13. System Setup Information.. 10
14. Event Record Information.. 10
15. Received Frame Mode.. 11
16. Received Video Callback Function.. 11
II. The Code of Return Value.. 13
III. Function Instruction.. 14
1. HDVR_Get_Max_Support_DVR () 14
2. HDVR_Init () 14
3. HDVR_Deinit () 14
4. HDVR_Create(HANDLE *hDVR, Connect_Info cInfo) 14
5. HDVR_Delete (HANDLE *hDVR) 14
6. HDVR_Connect(HANDLE hDVR, HDVRFRAME_CALLBACK pfCallback, int iContext, HSTREAM_MODE Mode, bool bAutoReconnect=false) 14
7. HDVR_Get_Record_Information(HANDLE hDVR, SYSTEMTIME *pstBegin, SYSTEMTIME *pstEnd, unsigned short *pusHDD) 15
8. HDVR_Set_PlayBack_Time(HANDLE hDVR, SYSTEMTIME stPlay) 16
9. HDVR_CleanAll() 16
10. HDVR_Get_Type_Channel(HANDLE hDVR, int *piType, int *piVideoChannel, int *piAudioChannel) 16
11. HDVR_Set_Stream_Num(HANDLE hDVR, unsigned short usVideo, unsigned short usAudio, HSTREAM_MODE Mode) 17
12. HDVR_Start_Receive(HANDLE hDVR, HSTREAM_MODE Mode, int iReceiveType=HDVR_VIDEO|HDVR_AUDIO|HDVR_EVENT) 17
13. HDVR_Pause_Receive(HANDLE hDVR, HSTREAM_MODE Mode) 18
14. HDVR_Continue_Receive(HANDLE hDVR, HSTREAM_MODE Mode) 18
15. HDVR_Get_Connect_Status(HANDLE hDVR, HSTREAM_MODE Mode) 18
16. HDVR_Set_PTZ(HANDLE hDVR, unsigned short usCh, HPTZ_COMMAND hCmd, void *pParam=NULL) 19
17. HDVR_Get_Server_Name(HANDLE hDVR, LPCTSTR pName) 19
18. HDVR_Set_Server_Name(HANDLE hDVR, LPCTSTR pName) 19
19. HDVR_Get_Channel_Title(HANDLE hDVR, unsigned short usCh, LPCTSTR pName) 20
20. HDVR_Set_Channel_Title(HANDLE hDVR, unsigned short usCh, LPCTSTR pName) 20
21. HDVR_Get_VideoSet(HANDLE hDVR, unsigned short usCh, VideoSet_Info *pvInfo) 20
22. HDVR_Set_VideoSet(HANDLE hDVR, unsigned short usCh, VideoSet_Info vInfo) 21
23. HDVR_Get_Channel_Display(HANDLE hDVR, unsigned short usCh, bool *pbDisplay) 21
24. HDVR_Set_Channel_Display(HANDLE hDVR, unsigned short usCh, bool bDisplay) 21
25. HDVR_Get_Channel_Switch_Time(HANDLE hDVR, unsigned short usCh, unsigned short *pusSwitch) 22
26. HDVR_Set_Channel_Switch_Time(HANDLE hDVR, unsigned short usCh, unsigned short usSwitch) 22
27. HDVR_Get_PTZSet(HANDLE hDVR, unsigned short usCh, PTZSet_Info *ptzInfo) 22
28. HDVR_Set_PTZSet(HANDLE hDVR, unsigned short usCh, PTZSet_Info ptzInfo) 23
29. HDVR_Get_MotionSet(HANDLE hDVR, unsigned short usCh, MotionSet_Info *pmInfo) 23
30. HDVR_Set_MotionSet(HANDLE hDVR, unsigned short usCh, MotionSet_Info mInfo) 24
31. HDVR_Get_RecordSet(HANDLE hDVR, RecordSet_Info *prInfo) 24
32. HDVR_Set_RecordSet(HANDLE hDVR, RecordSet_Info rInfo) 24
33. HDVR_Get_AlarmSet(HANDLE hDVR, AlarmSet_Info *paInfo) 25
34. HDVR_Set_AlarmSet(HANDLE hDVR, AlarmSet_Info aInfo) 25
35. HDVR_Get_SystemSet(HANDLE hDVR, SystemSet_Info *psInfo) 25
36. HDVR_Set_SystemSet(HANDLE hDVR, SystemSet_Info sInfo) 25
37. HDVR_Save_Setup(HANDLE hDVR) 26
38. HDVR_Execute_CGI(HANDLE hDVR, LPCTSTR pCmd, BYTE* pRecvStr, unsigned long *pBufSize) 26
39. HDVR_Get_Event_List(HANDLE hDVR, unsigned short usHDD, EventItem *pEventBuf, unsigned short *uspTotalEvent) 27
I. Instruction
Included File:
HDVR_SDK. dll
HDVR_SDK. lib
HDVR_DEFINE. H
HDVR_ERRORS. H
HDVR_SDK. H
1. Graphic Card Requirement
Minimum RequirementЎGDedicated 32MB Graphic Card
Suggested RequirementЎGDedicated 64MB Graphic Card (i. e. NVIDIA GeForce FX 5200) or higher
2. Function
l DVR connection
l The sound of Live video
l The sound of playback
l Received video flow and size
l DVR setup
l PTZ control
3. Receive Mode
HRECEIVE_TYPE
HDVR_VIDEO | Receive video |
HDVR_AUDIO | Receive audio |
HDVR_EVENT | Receive event |
4. Connection Information
struct Connect_Info{
char* sIP;
int iPort;
char* sUser;
char* sPassword;
int iDVRNumber;
};
sIP | Connect IP address |
iPort | Connection Port |
sUser | User name |
sPassword | User password |
iDVRNumber | DVR Number(0 ~ Max. DVR No.-1) |
5. System Information
struct HSystem_Info{
//Video information
unsigned short usSystemType;//** (1:NT, 2:PAL)
unsigned short usVideoType;//** (0 : JPEG, 4 : MPEG4, 5: H264)
unsigned short usResolution;//** (0:2CIF, 1:CIF)
unsigned short usVideoSource;//** (0:DVR, 1:IPCAM)
unsigned short usWidth;
unsigned short usHeight;
unsigned short usVideoLoss;//Bits:[16][15][14]...[2][1](0:video loss, 1:has video)
unsigned short usCoverChannel;//Bits:[16][15][14]...[2][1](0:show, 1:cover)
// Audio information
unsigned short usAudioType;
unsigned short usAudioChannel;
unsigned short usAudioSampleRate;
unsigned short usAudioBitRate;
};
usSystemType | Video System | |
usVideoType | Video Compression Format | |
usResolution | Resolution | |
usVideoSource | Video Source | |
usWidth | Video Width | |
usHeight | Video Height | |
usVideoLoss | Video Loss Status | |
usCoverChannel | Video Display Status | |
usAudioType | Audio Compression Format | |
usAudioChannel | 1 | MONO |
2 | STEREO | |
usAudioSampleRate | Audio Sample Rate | |
usAudioBitRate | Audio Bit Rate |
6. Event Information
struct Event_Info
{
unsigned short usMotion;
unsigned short usAlarm;
unsigned short usVideoLoss;
};
usMotion | Bits:[16][15][14]...[2][1](1 : Motion) |
usAlarm | Bits:[16][15][14]...[2][1](1 : Alarm) |
usVideoLoss | Bits:[16][15][14]...[2][1](1 : Video Loss) |
7. Name Information
struct Name_Info
{
unsigned char ucDVRTitle[21];
unsigned char ucCameraTitle[16][9];
};
ucDVRTitle | DVR Name (Max. 20 char) |
ucCameraTitle | Channel Name (Max 8 char/ per channel) |
8. Video Setup Information
struct VideoSet_Info
{
unsigned short usContrast; //1~99
unsigned short usBrightness; //1~99
unsigned short usHue; //1~99
unsigned short usColor; //1~99
bool bSharpness; //ON|OFF
};
usContrast | Contrast |
usBrightness | Brightness |
usHue | Hue |
usColor | Color |
bSharpness | Sharpness |
9. PTZ Setup Information
struct PTZSet_Info
{
unsigned short usLeftRight_Speed; //0~5
unsigned short usUpDown_Speed; //0~5
unsigned short usAuto_Speed; //0~2
unsigned short usBaudRate; //0~3 (0:2400,1:4800,2:9600,3:19200)
unsigned short usProtocol; //0~7
};
usLeftRight_Speed | The speed of left and right |
usUpDown_Speed | The Speed of up and down |
usAuto_Speed | The speed of auto patrol |
usBaudRate | Boud Rate |
usProtocol | Camera Protocal |
0 : PELCO-D | |
1 : PELCO-P | |
2 : HUNT | |
3 : LI-LIN | |
4 : DYNACOLOR | |
5 : EYEVIEW | |
6 : EP-PELCP-D | |
7 : EP-PELCO-P |
10. Motion Setup Information
struct MotionSet_Info
{
bool bEnable;
bool bBuzzer;
unsigned short usSensitivity; //1~99
unsigned int uiArea[24]; //30*24
};
bEnable | ON|OFF |
bBuzzer | Buzzer ON|OFF |
usSensitivity | Sensitivity |
uiArea | Area Setup |
11. Record Setup Information
struct Schedule_Info
{
char Record_Mode[7][24]; //0:No Record 1:Normal Record 4:Alarm Record
};
struct RecordSet_Info
{
unsigned short usResolution; //0:2CIF 1:CIF
bool bNormalAverage;
unsigned short usNormalPPS[16];
bool bAlarmAverage;
unsigned short usAlarmPPS[16];
unsigned short usAlarmSwitch; //5~99
unsigned short usNormalQuality[16]; //0:Low 1:Medium 2:High 3:Best
unsigned short usAlarmQuality[16]; //0:Low 1:Medium 2:High 3:Best
bool bRecordAudio;
unsigned short usRecordMode; //0:Normal 1~5:Schedule[1~5]
Schedule_Info Schedule[5];
};
usResolution | Resolution |
bNormalAverage | Average picture of normal recording |
usNormalPPS | Normal Recording Speed |
bAlarmAverage | Average picture of alarm recording |
usAlarmPPS | The Speed of Alarm Record |
usAlarmSwitch | The Time of Alarm Record |
usQuality | Record Quality |
bRecordAudio | Record Audio |
usRecordMode | Record Mode |
Schedule | Schedule |
12. Alarm Setup Information
struct AlarmSet_Info
{
unsigned short usAlarmMode; //0:N. O. 1:N. C.
unsigned short usDisplayMode; //0:Disable 1:Single Mode
bool bVLossDetect;
bool bLogAlarm;
bool bLogMotion;
bool bLogVLoss;
unsigned short usBuzzerAlarm; //0:OFF 5~99(seconds)
unsigned short usBuzzerMotion; //5~99(seconds)
unsigned short usBuzzerVLoss; //0:OFF 5~99(seconds)
unsigned short usRelayAlarm; //0:OFF 5~99(seconds)
unsigned short usRelayMotion; //0:OFF 5~99(seconds)
unsigned short usRelayVLoss; //0:OFF 5~99(seconds)
};
usAlarmMode | Alarm detection |
usDisplayMode | Alarm Switch |
bVLossDetect | Video loss detection |
bLogAlarm | Outer Alarm record log |
bLogMotion | Motion detection log |
bLogVLoss | Video loss log |
usBuzzerAlarm | The alarm time of the buzzer |
usBuzzerMotion | Motion time of the buzzer |
usBuzzerVLoss | Video loss time of the buzzer |
usRelayAlarm | Alarm time of the relay |
usRelayMotion | Motion time of the relay |
usRelayVLoss | Video loss time of the relay |
13. System Setup Information
struct SystemSet_Info
{
unsigned short usSpotMode; //0:OFF 1:Full Switch 2:Quad Switch
unsigned short usFullDwell[16]; //0:OFF 2~99(seconds)
unsigned short usQuadDwell[4]; //0:OFF 2~99(seconds)
};
usSpotMode | Auto-spot Mode |
usFullDwell | Full Screen spot Dwell time |
usQuadDwell | Quad Screen spot Dwell time |
14. Event Record Information
struct EventItem
{
char cChannel;
SYSTEMTIME stEventTime;
HEVENT_TYPE EventType;
};
cChannel | Channel |
stEventTime | Event Time |
EventType | Event Type |
15. Received Frame Mode
struct HDVRFrame{
HSTREAM_MODE Mode; //0:Live 1:PlayBack
unsigned short usFrameType; /**FrameType
2 : I
3 : P
4 : B
5 : AUDIO
6 : Event_Info
7 : Name_Info
**/
FILETIME ftFrameTime;
unsigned short usCh;
unsigned int uiDataLen;
char* cFrameData;
};
Mode | Frame Mode |
usFrameType | Frame Variety |
ftFrameTime | Frame Time |
usCh | Channel |
uiDataLen | Frame Length |
cFrameData | Frame Data |
16. Received Video Callback Function
typedef int (CALLBACK * HDVRFRAME_CALLBACK)(int iContext, unsigned char ucDVR, HDVRFrame *pFrame, HSystem_Info HInfo);
iContext | Send a int to Callback to be identity code |
ucDVR | DVR Number |
pFrame | HDVRFrame |
HInfo | HSystem_Info Video information |
II. The Code of Return Value
#define HDVR_OK 0
#define HDVR_WSASTARTUP_ER -1
#define HDVR_IS_NULL -2
#define HDVR_IS_UNCONNECTED -3
#define HDVR_IS_FULL -4
#define HDVR_CAN_NOT_FIND_HANDLE -5
#define HDVR_SOCKET_IS_NULL -6
#define HDVR_USER_OR_PASSWD_IS_ER -7
#define HDVR_OVER_MAX_DEFINED_DVR -8
#define HDVR_CGI_EXECUTE_ERROR -9
#define HDVR_RECORD_INFO_ERROR -10
#define HDVR_CAN_NOT_FIND_REC_DATA -11
#define HDVR_CGI_PARAM_ERROR -12
#define HDVR_CGI_BUFFER_TOO_SMALL -13
III. Function Instruction
1. HDVR_Get_Max_Support_DVR ()
Instruction: Get the maximum supported DVR number in this SDK version
Return Value: Maximum number of DVR
2. HDVR_Init ()
Instruction: HDVR_SDK initialization
Return Value:
HDVR__OK
I HDVR_WSASTARTUP_ER
3. HDVR_Deinit ()
Instruction: Close HDVR_SDK
Return Value:
HDVR_OK
4. HDVR_Create(HANDLE *hDVR, Connect_Info cInfo)
Instruction: Create the Connection
Return Value:
HDVR_OK
Parameter:
hDVR HANDLE point of the connection
cInfo Connection Information
5. HDVR_Delete (HANDLE *hDVR)
Instruction: Delete a connection
Return Value:
HDVR_OK
HDVR_IS_NULL
Parameter:
hDVR Close the HANDLE of a connection
6. HDVR_Connect(HANDLE hDVR, HDVRFRAME_CALLBACK pfCallback, int iContext, HSTREAM_MODE Mode, bool bAutoReconnect=false)
Instruction: Connect to DVR and get Live | Playback streaming
Return Value:
HDVR_OK
HDVR_IS_UNCONNECTED
HDVR_IS_NULL
HDVR_IS_FULL
HDVR_CAN_NOT_FIND_HANDLE
HDVR_SOCKET_IS_NULL
Parameter:
hDVR HANDLE of a connection
pfCallback The Callback Function to receive data
iContext Sent the identification code of Callback
Mode Connection Mode: HDVR_LIVE | HDVR_PLAY
bAutoReconnect Set for re-connection automatically.
7. HDVR_Get_Record_Information(HANDLE hDVR, SYSTEMTIME *pstBegin, SYSTEMTIME *pstEnd, unsigned short *pusHDD)
Instruction: Get DVR record information
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CGI_EXECUTE_ERROR
HDVR_CAN_NOT_FIND_HANDLE
HDVR_RECORDINFO_ERROR
Parameter:
hDVR HANDLE of a connection
pstBegin The start time of recording
pstEnd The end time of recording
pusHDD Hard disk number
8. HDVR_Set_PlayBack_Time(HANDLE hDVR, SYSTEMTIME stPlay)
Instruction: Set the playback time
Return Value:
HDVR_OK
HDVR_IS_UNCONNECTED
HDVR_IS_NULL
HDVR_IS_FULL
HDVR_CAN_NOT_FIND_HANDLE
HDVR_SOCKET_IS_NULL
HDVR_CAN_NOT_FIND_REC_DATA
Parameter:
hDVR HANDLE of a connection
stPlay Playback time
9. HDVR_CleanAll()
Instruction: Delete all connection
Return Value :
HDVR_OK
10. HDVR_Get_Type_Channel(HANDLE hDVR, int *piType, int *piVideoChannel, int *piAudioChannel)
Instruction: Get DVR type and the channel number which supported video and audio.
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CGI_EXECUTE_ERROR
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
piType DVR Type
piVideoChannel The amount number of video channel
piAudioChannel The amount number of audio channel
11. HDVR_Set_Stream_Num(HANDLE hDVR, unsigned short usVideo, unsigned short usAudio, HSTREAM_MODE Mode)
Instruction: Set up the channel which gets the video and the audio.
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
usVideo Get the video channel Bits:[16][15][14]...[2][1](0:stop send, 1:send)
usAudio Get the video channel Bits:[16][15][14]...[2][1](0:stop send, 1:send)
Mode HDVR_LIVE | HDVR_PLAY
12. HDVR_Start_Receive(HANDLE hDVR, HSTREAM_MODE Mode, int iReceiveType=HDVR_VIDEO|HDVR_AUDIO|HDVR_EVENT)
Instruction: Start to receive the data
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
Mode HDVR_LIVE | HDVR_PLAY
iReceiveType Received Variety
13. HDVR_Pause_Receive(HANDLE hDVR, HSTREAM_MODE Mode)
Instruction: Pause to receive the data
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
Mode HDVR_LIVE | HDVR_PLAY
14. HDVR_Continue_Receive(HANDLE hDVR, HSTREAM_MODE Mode)
Instruction: Continue to receive the data
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
Mode HDVR_LIVE | HDVR_PLAY
15. HDVR_Get_Connect_Status(HANDLE hDVR, HSTREAM_MODE Mode)
Instruction: Get the connection status
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_IS_FULL
HDVR_USER_OR_PASSWD_IS_ER
HDVR_IS_UNCONNECTED
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
Mode HDVR_LIVE | HDVR_PLAY
16. HDVR_Set_PTZ(HANDLE hDVR, unsigned short usCh, HPTZ_COMMAND hCmd, void *pParam=NULL)
Instruction: PTZ Control
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
HDVR_CGI_EXECUTE_ERROR
HDVR_CGI_PARAM_ERROR
Parameter:
hDVR HANDLE of a connection
usCh Channel
hCmd HPTZ_COMMAND
pParam Set the parameter
17. HDVR_Get_Server_Name(HANDLE hDVR, LPCTSTR pName)
Instruction: Get DVR name
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
pName String point
18. HDVR_Set_Server_Name(HANDLE hDVR, LPCTSTR pName)
Instruction: Set DVR name
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
pName Name(could not exceed 20 characters)
19. HDVR_Get_Channel_Title(HANDLE hDVR, unsigned short usCh, LPCTSTR pName)
Instruction: Get the channel title
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
usCh Channel
pName Name
20. HDVR_Set_Channel_Title(HANDLE hDVR, unsigned short usCh, LPCTSTR pName)
Instruction: Set the channel title
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
usCh Channel
pName Name(could not exceed 8 characters)
21. HDVR_Get_VideoSet(HANDLE hDVR, unsigned short usCh, VideoSet_Info *pvInfo)
Instruction: Get the information of video setting
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
usCh Channel
pvInfo VideoSet_Info point
22. HDVR_Set_VideoSet(HANDLE hDVR, unsigned short usCh, VideoSet_Info vInfo)
Instruction: Set the video information
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
usCh Channel
vInfo VideoSet_Info
23. HDVR_Get_Channel_Display(HANDLE hDVR, unsigned short usCh, bool *pbDisplay)
Instruction: Get the channel display information
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
usCh Channel
pbDisplay ON | OFF
24. HDVR_Set_Channel_Display(HANDLE hDVR, unsigned short usCh, bool bDisplay)
Instruction: Set up the channel display
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
usCh Channel
bDisplay ON | OFF
25. HDVR_Get_Channel_Switch_Time(HANDLE hDVR, unsigned short usCh, unsigned short *pusSwitch)
Instruction: Get the information of channel switch time
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
usCh Channel
pusSwitch Channel switch time
26. HDVR_Set_Channel_Switch_Time(HANDLE hDVR, unsigned short usCh, unsigned short usSwitch)
Instruction: Set the channel switch time
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
usCh Channel
usSwitch Channel switch time
27. HDVR_Get_PTZSet(HANDLE hDVR, unsigned short usCh, PTZSet_Info *ptzInfo)
Instruction: Get the PTZ setting information
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
usCh Channel
ptzInfo PTZSet_Info point
28. HDVR_Set_PTZSet(HANDLE hDVR, unsigned short usCh, PTZSet_Info ptzInfo)
Instruction: Set PTZ information
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
usCh Channel
ptzInfo PTZSet_Info
29. HDVR_Get_MotionSet(HANDLE hDVR, unsigned short usCh, MotionSet_Info *pmInfo)
Instruction: Get the motion set up information
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
usCh Channel
pmInfo MotionSet_Info point
30. HDVR_Set_MotionSet(HANDLE hDVR, unsigned short usCh, MotionSet_Info mInfo)
Instruction: Set up Motion Information
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
usCh Channel
mInfo MotionSet_Info
31. HDVR_Get_RecordSet(HANDLE hDVR, RecordSet_Info *prInfo)
Instruction: Get Record set up information
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
prInfo RecordSet_Info point
32. HDVR_Set_RecordSet(HANDLE hDVR, RecordSet_Info rInfo)
Instruction: Set up Record Information
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
rInfo RecordSet_Info
33. HDVR_Get_AlarmSet(HANDLE hDVR, AlarmSet_Info *paInfo)
Instruction: Get Alarm set up information
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
paInfo AlarmSet_Info point
34. HDVR_Set_AlarmSet(HANDLE hDVR, AlarmSet_Info aInfo)
Instruction: Set up Alarm Information
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
aInfo AlarmSet_Info
35. HDVR_Get_SystemSet(HANDLE hDVR, SystemSet_Info *psInfo)
Instruction: Get system set up information
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
psInfo SystemSet_Info point
36. HDVR_Set_SystemSet(HANDLE hDVR, SystemSet_Info sInfo)
Instruction: Set up system information
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
Parameter:
hDVR HANDLE of a connection
sInfo SystemSet_Info
37. HDVR_Save_Setup(HANDLE hDVR)
Instruction: Save set up
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
HDVR_IS_UNCONNECTED
Parameter:
hDVR HANDLE of a connection
38. HDVR_Execute_CGI(HANDLE hDVR, LPCTSTR pCmd, BYTE* pRecvStr, unsigned long *pBufSize)
Instruction: Implement CGI command
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
HDVR_CGI_BUFFER_TOO_SMALL
HDVR_CGI_EXECUTE_ERROR
Parameter:
hDVR HANDLE of a connection
pCmd CGI command
pRecvStr Save as CGI returned data
pBufSize Return data length(Set pBufSize as pRecvStrЎ¦s length before use this function)
39. HDVR_Get_Event_List(HANDLE hDVR, unsigned short usHDD, EventItem *pEventBuf, unsigned short *uspTotalEvent)
Instruction: Get event list
Return Value:
HDVR_OK
HDVR_IS_NULL
HDVR_CAN_NOT_FIND_HANDLE
HDVR_SOCKET_IS_NULL
HDVR_IS_UNCONNECTED
Parameter:
hDVR HANDLE of a connection
usHdd Hard Disk Number
pEventBuf Save as the returned Event items (Recommend memory size is 3000*sizeof(EventItem))
uspTotalEvent Get the amount of EventItem


