public class HikDevice extends Object implements DeviceOptions
线程安全的.
| 限定符和类型 | 方法和说明 |
|---|---|
HikResult |
adjustTime(Date time)
设备校时.
|
void |
destroy()
销毁.
|
HikResult |
doAction(Function<Token,HikResult> action)
执行动作.
|
<T extends com.sun.jna.Structure> |
getDvrConfig(long channel,
int command,
Class<T> clazz)
获取设备配置.
|
HikResult |
init()
初始化.
|
HikResult |
modifyPassword(String targetUser,
String newPassword)
修改指定用户密码.
|
HikResult<String> |
passThrough(String url,
String data)
透传.
|
HikResult |
ptzControl(int command,
int stop,
int speed)
云台控制.
|
HikResult |
ptzControlStart(int command,
int speed)
云台控制开始
|
HikResult |
ptzControlStop(int command,
int speed)
云台控制停止
|
HikResult |
ptzCruise(int cruiseCommand,
int cruiseRoute,
int cruisePoint,
int speed)
云台巡航。
|
HikResult |
ptzCruiseFillPreset(int cruiseRoute,
int cruisePoint,
int speed)
云台巡航添加点位.
|
HikResult |
ptzCruiseRun(int cruiseRoute)
云台巡航运行.
|
HikResult |
ptzCruiseStop(int cruiseRoute)
云台巡航运行.
|
HikResult |
ptzPreset(int presetCommand,
int presetIndex)
云台点位控制.
|
HikResult |
ptzPresetClean(int presetIndex)
云台点位清除.
|
HikResult |
ptzPresetGoto(int presetIndex)
云台点位跳转.
|
HikResult |
ptzPresetSet(int presetIndex)
云台点位设置.
|
HikResult |
ptzTrack(int trackCommand)
云台轨迹操作。
|
HikResult |
ptzTrackRun()
云台轨迹运行.
|
HikResult |
ptzTrackStartRecord()
云台轨迹开始记录.
|
HikResult |
ptzTrackStopRecord()
云台轨迹停止记录.
|
HikResult |
ptzZoom(int xTop,
int yTop,
int xBottom,
int yBottom)
云台图像缩放.
|
HikResult |
reboot()
重启设备.
|
HikResult |
setDvrConfig(long channel,
int type,
com.sun.jna.Structure settings)
设置设备配置.
|
HikResult<Long> |
setupDeploy(HCNetSDK.FMSGCallBack messageCallback,
HCNetSDK.FExceptionCallBack exceptionCallback)
布防.
|
HikResult<UpgradeAsyncResponse> |
upgradeAsync(String sdkFile)
升级设备(异步),注意升级完成后需要手动重启
|
HikResult<UpgradeResponse> |
upgradeSync(String sdkFile)
升级设备(同步),注意升级完成后需要手动重启
|
public HikResult init()
DeviceOptionsinit 在接口中 DeviceOptionspublic void destroy()
DeviceOptionsdestroy 在接口中 DeviceOptionspublic HikResult doAction(Function<Token,HikResult> action)
DeviceOptionsdoAction 在接口中 DeviceOptionspublic HikResult<Long> setupDeploy(HCNetSDK.FMSGCallBack messageCallback, HCNetSDK.FExceptionCallBack exceptionCallback)
DeviceOptionssetupDeploy 在接口中 DeviceOptionspublic HikResult<String> passThrough(String url, String data)
DeviceOptionspassThrough 在接口中 DeviceOptionspublic <T extends com.sun.jna.Structure> HikResult<T> getDvrConfig(long channel, int command, Class<T> clazz)
DeviceOptionsgetDvrConfig 在接口中 DeviceOptionspublic HikResult setDvrConfig(long channel, int type, com.sun.jna.Structure settings)
DeviceOptionssetDvrConfig 在接口中 DeviceOptionspublic HikResult modifyPassword(String targetUser, String newPassword)
DeviceOptionsmodifyPassword 在接口中 DeviceOptionspublic HikResult adjustTime(Date time)
DeviceOptionsadjustTime 在接口中 DeviceOptionspublic HikResult reboot()
DeviceOptionsreboot 在接口中 DeviceOptionspublic HikResult<UpgradeResponse> upgradeSync(String sdkFile)
DeviceOptionsupgradeSync 在接口中 DeviceOptionspublic HikResult<UpgradeAsyncResponse> upgradeAsync(String sdkFile)
DeviceOptionsupgradeAsync 在接口中 DeviceOptionspublic HikResult ptzControl(int command, int stop, int speed)
DeviceOptionsptzControl 在接口中 DeviceOptionspublic HikResult ptzControlStart(int command, int speed)
DeviceOptionsptzControlStart 在接口中 DeviceOptionspublic HikResult ptzControlStop(int command, int speed)
DeviceOptionsptzControlStop 在接口中 DeviceOptionspublic HikResult ptzPresetSet(int presetIndex)
DeviceOptionsptzPresetSet 在接口中 DeviceOptionspublic HikResult ptzPresetClean(int presetIndex)
DeviceOptionsptzPresetClean 在接口中 DeviceOptionspublic HikResult ptzPresetGoto(int presetIndex)
DeviceOptionsptzPresetGoto 在接口中 DeviceOptionspublic HikResult ptzPreset(int presetCommand, int presetIndex)
DeviceOptionsptzPreset 在接口中 DeviceOptionspublic HikResult ptzCruise(int cruiseCommand, int cruiseRoute, int cruisePoint, int speed)
DeviceOptionsptzCruise 在接口中 DeviceOptionspublic HikResult ptzCruiseRun(int cruiseRoute)
DeviceOptionsptzCruiseRun 在接口中 DeviceOptionspublic HikResult ptzCruiseStop(int cruiseRoute)
DeviceOptionsptzCruiseStop 在接口中 DeviceOptionspublic HikResult ptzCruiseFillPreset(int cruiseRoute, int cruisePoint, int speed)
DeviceOptionsptzCruiseFillPreset 在接口中 DeviceOptionspublic HikResult ptzTrack(int trackCommand)
DeviceOptionsptzTrack 在接口中 DeviceOptionspublic HikResult ptzTrackStartRecord()
DeviceOptionsptzTrackStartRecord 在接口中 DeviceOptionspublic HikResult ptzTrackStopRecord()
DeviceOptionsptzTrackStopRecord 在接口中 DeviceOptionspublic HikResult ptzTrackRun()
DeviceOptionsptzTrackRun 在接口中 DeviceOptionspublic HikResult ptzZoom(int xTop, int yTop, int xBottom, int yBottom)
DeviceOptionsptzZoom 在接口中 DeviceOptionsCopyright © 2020. All rights reserved.