I have it, last time i send to Fenderman for the BI integration, you can check which part you can use, i can send to you that part only.
4 1.Preface This document details the API of Dahua video products. Programmers can access and configure Dahua video products follows the API. This document with version 1.10 is available with firmware version 2.0 and above. This document with version 1.20, 1.21, 1.22, 1.23, 1.24,1,25,1,26,1,27,1,28 is available with firmware 2.210 and above.This document with version 1. 29 , 1.30, 1.31, 1.32, 1.33, 1.34, 1.35, 1.36 is available with firmware 2.210 and above.This document with version 1.37,1.38 is available with firmware 2.212, 2.4 and above. This document with version 1.39 is available with firmware 2.42 and above. 2.Catalog Document History......................................................................................................................................................................................................2 1.Preface....................................................................................................................................................................................................................4 2.Catalog....................................................................................................................................................................................................................4 3.HTTP API Transaction............................................................................................................................................................................................11 3.1 Transaction.................................................................................................................................................................................................11 3.2 Format .......................................................................................................................................................................................................12 3.3 Authentication ...........................................................................................................................................................................................12 3.4 Response....................................................................................................................................................................................................13 4.Camera..................................................................................................................................................................................................................13 4.1Stream ........................................................................................................................................................................................................13 4.1.1 GetStream.......................................................................................................................................................................................13 4.1.2 GetMaxExtraStreamCounts.............................................................................................................................................................14 4.1.3 GetSnapshot ...................................................................................................................................................................................14 4.1.4 GetVideo.........................................................................................................................................................................................14 4.1.5 PlayBack..........................................................................................................................................................................................15 4.1.6 LoadFile...........................................................................................................................................................................................15 4.1.7 GetStream By Http ..........................................................................................................................................................................15 4.1.8 Playback By Http .............................................................................................................................................................................15 4.2VideoColor..................................................................................................................................................................................................16 4.2.1 GetVideoColorConfig......................................................................................................................................................................16 4.2.2 SetVideoColorConfig.......................................................................................................................................................................17 4.3VideoInOptions...........................................................................................................................................................................................17 4.3.1 GetVideoInputCaps.........................................................................................................................................................................17 4.3.2 GetVideoInOptionsConfig...............................................................................................................................................................19 4.3.3 SetVideoInOptionsConfig................................................................................................................................................................22 4.4VideoEncode...............................................................................................................................................................................................26 4.4.1 GetVideoConfigCaps.......................................................................................................................................................................26 4.4.2 Resolution .......................................................................................................................................................................................27 4.4.3 GetVideoEncodeConfig...................................................................................................................................................................28 4.4.4 SetVideoEncodeConfig ...................................................................................................................................................................29 5 4.5AudioEncode...............................................................................................................................................................................................30 4.5.1 GetAudioConfigCaps.......................................................................................................................................................................30 4.5.2 GetAudioEncodeConfig...................................................................................................................................................................30 4.5.3 SetAudioEncodeConfig....................................................................................................................................................................31 4.6 SnapEncode ...............................................................................................................................................................................................32 4.6.1 GetSnapConfigCaps.........................................................................................................................................................................32 4.6.2 GetSnapEncodeConfig ....................................................................................................................................................................32 4.6.3 SetSnapEncodeConfig .....................................................................................................................................................................33 4.7ChannelTitle ...............................................................................................................................................................................................34 4.7.1 GetChannelTitleConfig....................................................................................................................................................................34 4.7.2 SetChannelTitleConfig ....................................................................................................................................................................34 4.8VideoStandard............................................................................................................................................................................................34 4.8.1 GetVideoStandardConfig ................................................................................................................................................................34 4.8.2 SetVideoStandardConfig.................................................................................................................................................................34 4.9VideoWidget...............................................................................................................................................................................................35 4.9.1 GetVideoWidgetConfig...................................................................................................................................................................35 4.9.2 SetVideoWidgetConfig ...................................................................................................................................................................36 4.10VideoIn .....................................................................................................................................................................................................38 4.10.1 getCollect......................................................................................................................................................................................38 4.11VideoOut ..................................................................................................................................................................................................38 4.11.1 GetVideoOutConfig.......................................................................................................................................................................38 4.11.2 SetVideoOutConfig .......................................................................................................................................................................38 4.12FlashLight..................................................................................................................................................................................................39 4.12.1 GetFlashLightConfig ......................................................................................................................................................................39 4.12.2 SetFlashLightConfig.......................................................................................................................................................................39 5.NetWork ...............................................................................................................................................................................................................40 5.1NetInterfaces..............................................................................................................................................................................................40 5.1.1 GetInterfaces...................................................................................................................................................................................40 5.2BasicConfig..................................................................................................................................................................................................41 5.2.1 GetBasicConfig................................................................................................................................................................................41 5.2.2 SetBasicConfig.................................................................................................................................................................................41 5.3PPPoE..........................................................................................................................................................................................................42 5.3.1 GetPPPoEConfig ..............................................................................................................................................................................42 5.3.2 SetPPPoEConfig...............................................................................................................................................................................42 5.4DDNS...........................................................................................................................................................................................................42 5.4.1 GetDDNSConfig...............................................................................................................................................................................42 5.4.2 SetDDNSConfig................................................................................................................................................................................43 5.5Email...........................................................................................................................................................................................................44 5.5.1 GetEmailConfig ...............................................................................................................................................................................44 5.5.2 SetEmailConfig................................................................................................................................................................................44 5.6Wlan ...........................................................................................................................................................................................................45 5.6.1 GetWlanConfig................................................................................................................................................................................45 5.6.2 SetWlanConfig ................................................................................................................................................................................45 5.6.3 ScanWlanDevices............................................................................................................................................................................46 5.7UPnP ...........................................................................................................................................................................................................47 6 5.7.1 GetUPnPConfig ...............................................................................................................................................................................47 5.7.2 SetUPnPConfig ................................................................................................................................................................................47 5.7.3 GetUPnPStatus................................................................................................................................................................................47 5.8NTP .............................................................................................................................................................................................................48 5.8.1 GetNTPConfig..................................................................................................................................................................................48 5.8.2 SetNTPConfig ..................................................................................................................................................................................48 5.9RTSP............................................................................................................................................................................................................49 5.9.1 GetRTSPConfig ................................................................................................................................................................................49 5.9.2 SetRTSPConfig.................................................................................................................................................................................49 5.10Telnet........................................................................................................................................................................................................50 5.10.1 GetTelnetConfig ............................................................................................................................................................................50 5.10.2 SetTelnetConfig .............................................................................................................................................................................50 6.Events ...................................................................................................................................................................................................................50 6.1EventHandler..............................................................................................................................................................................................50 6.1.1 GetEventHandler.............................................................................................................................................................................50 6.1.2 SetEventHandler .............................................................................................................................................................................52 6.2Alarm ..........................................................................................................................................................................................................53 6.2.1 GetAlarmConfig ..............................................................................................................................................................................53 6.2.2 SetAlarmConfig ...............................................................................................................................................................................54 6.2.3 GetAlarmOutConfig.........................................................................................................................................................................54 6.2.4 SetAlarmOutConfig .........................................................................................................................................................................54 6.2.5 GetInSlots........................................................................................................................................................................................55 6.2.6 GetOutSlots.....................................................................................................................................................................................55 6.2.7 GetInState .......................................................................................................................................................................................55 6.2.8 GetOutState ....................................................................................................................................................................................55 6.2.9 GetChannelInState..........................................................................................................................................................................55 6.2.10 GetChannelOutState .....................................................................................................................................................................56 6.3MotionDetect .............................................................................................................................................................................................56 6.3.1 GetMotionDetectConfig..................................................................................................................................................................56 6.3.2 SetMotionDetectConfig ..................................................................................................................................................................56 6.4BlindDetect.................................................................................................................................................................................................58 6.4.1 GetBlindDetectConfig .....................................................................................................................................................................58 6.4.2 SetBlindDetectConfig ......................................................................................................................................................................58 6.5LossDetect ..................................................................................................................................................................................................58 6.5.1 GetLossDetectConfig.......................................................................................................................................................................58 6.5.2 SetLossDetectConfig .......................................................................................................................................................................58 6.6LoginFailureAlarm.......................................................................................................................................................................................59 6.6.1 GetLoginFailureAlarmConfig ...........................................................................................................................................................59 6.6.2 SetLoginFailureAlarmConfig............................................................................................................................................................59 6.7 StorageAbnormal.......................................................................................................................................................................................59 6.7.1 GetStorageNotExistConfig...............................................................................................................................................................59 6.7.2 SetStorageNotExistConfig ...............................................................................................................................................................60 6.7.3 Get StorageFailureConfig ................................................................................................................................................................60 6.7.4 Set StorageFailureConfig.................................................................................................................................................................60 6.7.5 GetStorageLowSpaceConfig ............................................................................................................................................................60 7 6.7.6 SetStorageLowSpaceConfig.............................................................................................................................................................60 6.8 NetAbnormal .............................................................................................................................................................................................61 6.8.1 GetNetAbortConfig .........................................................................................................................................................................61 6.8.2 SetNetAbortConfig..........................................................................................................................................................................61 6.8.3 GetIPConflictConfig.........................................................................................................................................................................61 6.8.4 SetIPConflictConfig .........................................................................................................................................................................61 6.9 GetEventIndexes........................................................................................................................................................................................62 6.10 Attach.......................................................................................................................................................................................................62 7.PTZ........................................................................................................................................................................................................................64 7.1PTZConfig....................................................................................................................................................................................................64 7.1.1 GetPTZConfig ..................................................................................................................................................................................64 7.1.2 SetPTZConfig...................................................................................................................................................................................64 7.1.3 GetPtzAutoMovementConfig..........................................................................................................................................................65 7.1.4 SetPtzAutoMovementConfig ..........................................................................................................................................................65 7.2PTZControl ..................................................................................................................................................................................................66 7.2.1 GetProtocolList................................................................................................................................................................................66 7.2.2 GetCurrentProtocolCaps.................................................................................................................................................................66 7.2.3 PTZ control commands ...................................................................................................................................................................67 7.3PTZStatus....................................................................................................................................................................................................70 7.3.1 PTZ GetStatus..................................................................................................................................................................................70 8.RecordSnap...........................................................................................................................................................................................................71 8.1Record.........................................................................................................................................................................................................71 8.1.1 GetRecordConfig.............................................................................................................................................................................71 8.1.2 SetRecordConfig..............................................................................................................................................................................71 8.1.3 GetRecordModeConfig ...................................................................................................................................................................72 8.1.4 SetRecordModeConfig ....................................................................................................................................................................72 8.2Snap............................................................................................................................................................................................................72 8.2.1 GetSnapConfig ................................................................................................................................................................................72 8.2.2 SetSnapConfig.................................................................................................................................................................................73 8.2.3 attachFileProc .................................................................................................................................................................................73 8.3MediaGlobal ...............................................................................................................................................................................................74 8.3.1 GetMediaGlobalConfig....................................................................................................................................................................74 8.3.2 SetMediaGlobalConfig ....................................................................................................................................................................74 8.4Holiday........................................................................................................................................................................................................74 8.4.1 GetHolidayConfig ............................................................................................................................................................................74 8.4.2 SetHolidayConfig.............................................................................................................................................................................75 9.System ..................................................................................................................................................................................................................75 9.1General .......................................................................................................................................................................................................75 9.1.1 GetGeneralConfig............................................................................................................................................................................75 9.1.2 SetGeneralConfig ............................................................................................................................................................................76 9.2SystemTime ................................................................................................................................................................................................76 9.2.1 GetCurrentTime..............................................................................................................................................................................76 9.2.2 SetCurrentTime...............................................................................................................................................................................76 9.3Locales........................................................................................................................................................................................................76 9.3.1 GetLocalesConfig ............................................................................................................................................................................76 8 9.3.2 SetLocalesConfig .............................................................................................................................................................................77 9.4Language.....................................................................................................................................................................................................78 9.4.1 GetLanguageCaps ...........................................................................................................................................................................78 9.4.2 GetLanguageConfig.........................................................................................................................................................................78 9.4.3 SetLanguageConfig..........................................................................................................................................................................79 9.5AccessFilter.................................................................................................................................................................................................79 9.5.1 GetAccessFilterConfig .....................................................................................................................................................................79 9.5.2 SetAccessFilterConfig......................................................................................................................................................................79 9.6AutoMaintain..............................................................................................................................................................................................80 9.6.1 GetAutoMaintainConfig ..................................................................................................................................................................80 9.6.2 SetAutoMaintainConfig...................................................................................................................................................................80 9.7UserManager..............................................................................................................................................................................................81 9.7.1 Group..............................................................................................................................................................................................81 9.7.2 GetGroupInfo ..................................................................................................................................................................................81 9.7.3 GetGroupInfoAll..............................................................................................................................................................................81 9.7.4 AddUser ..........................................................................................................................................................................................81 9.7.5 DeleteUser ......................................................................................................................................................................................82 9.7.6 ModifyUser .....................................................................................................................................................................................82 9.7.7 ModifyPassword .............................................................................................................................................................................82 9.7.8 GetUserInfo.....................................................................................................................................................................................83 9.7.9 GetUserInfoAll.................................................................................................................................................................................83 9.7.10 GetActiveUserInfoAll.....................................................................................................................................................................83 9.8System Operation .......................................................................................................................................................................................84 9.8.1 Reboot ............................................................................................................................................................................................84 9.8.2 Shutdown........................................................................................................................................................................................84 9.8.3 GetDeviceType................................................................................................................................................................................84 9.8.4 GetHardwareVersion.......................................................................................................................................................................84 9.8.5 GetSerialNo.....................................................................................................................................................................................84 9.8.6 GetMachineName...........................................................................................................................................................................84 9.8.7 GetSystemInfo.................................................................................................................................................................................85 9.8.8 GetVendor.......................................................................................................................................................................................85 9.8.9 GetSoftwareVersion ........................................................................................................................................................................85 9.8.10 GetOnvifVersion............................................................................................................................................................................85 9.8.11 getUUID ........................................................................................................................................................................................85 9.9 Log .............................................................................................................................................................................................................86 9.9.1 StartFind .........................................................................................................................................................................................86 9.9.2 DoFind.............................................................................................................................................................................................86 9.9.3 StopFind..........................................................................................................................................................................................87 9.9.4 Clear................................................................................................................................................................................................87 9.10 UserGlobal ...............................................................................................................................................................................................87 9.10.1 GetUserGlobalConfig ....................................................................................................................................................................87 9.10.2 SetUserGlobalConfig .....................................................................................................................................................................87 9.11 IntervideoManager..................................................................................................................................................................................87 9.11.1 GetCGIVersion...............................................................................................................................................................................87 9.12 ConfigRestore...........................................................................................................................................................................................88 9 9.12.1 Restore..........................................................................................................................................................................................88 9.12.1 RestoreExcept ...............................................................................................................................................................................88 10.Storage................................................................................................................................................................................................................88 10.1 File Finding ..............................................................................................................................................................................................88 10.1.1 Create............................................................................................................................................................................................88 10.1.2 StartFind .......................................................................................................................................................................................88 10.1.3 FindNextFile..................................................................................................................................................................................89 10.1.4 Close .............................................................................................................................................................................................90 10.1.5 Destroy..........................................................................................................................................................................................90 10.2 Storage Device .........................................................................................................................................................................................90 10.2.1 GetStorageDeviceCollect ..............................................................................................................................................................90 10.2.2 getDeviceAllInfo............................................................................................................................................................................90 10.2.3 setStorageDevice ..........................................................................................................................................................................91 10.2.4 getCaps .........................................................................................................................................................................................91 10.3 Work Group .............................................................................................................................................................................................91 10.3.1 GetWorkGroupCollect...................................................................................................................................................................91 10.4 Work Directory.........................................................................................................................................................................................92 10.4.1 GetWorkDirectoryCollect..............................................................................................................................................................92 10.5 NAS ..........................................................................................................................................................................................................92 10.5.1 GetNASConfig ...............................................................................................................................................................................92 10.5.2 SetNASConfig ................................................................................................................................................................................92 10.6 Storage Point............................................................................................................................................................................................93 10.6.1 GetRecordStoragePointConfig ......................................................................................................................................................93 10.6.2 SetRecordStoragePointConfig .......................................................................................................................................................93 10.6.3 GetStorageGroupConfig................................................................................................................................................................94 10.6.4 SetStorageGroupConfig.................................................................................................................................................................94 11.Audio ..................................................................................................................................................................................................................94 11.1 Audio MIME type.....................................................................................................................................................................................94 11.2 Post Audio................................................................................................................................................................................................95 11.2.1 Example for singlepart ..................................................................................................................................................................95 11.2.2 Example for multipart ...................................................................................................................................................................95 11.3 Get Audio.................................................................................................................................................................................................96 11.3.1 Example for singlepart ..................................................................................................................................................................96 11.3.2 Example for multipart ...................................................................................................................................................................96 11.4 Audio Input..............................................................................................................................................................................................97 11.4.1 getCollect......................................................................................................................................................................................97 11.5 Audio Output ...........................................................................................................................................................................................97 11.5.1 getCollect......................................................................................................................................................................................97 12.Appendix.............................................................................................................................................................................................................97 12.1 Stream Format.........................................................................................................................................................................................97 13.VedioInput ........................................................................................................................................................................................................100 13.1 AdjustFocus............................................................................................................................................................................................100 13.2 AdjustFocusContinuously.......................................................................................................................................................................100 13.3 AutoFocus..............................................................................................................................................................................................100 13.4 GetFocusStatus......................................................................................................................................................................................100