实现方式
实现流程
实现流程如下图,初始化sdk、用户设备注册、注销设备、释放sdk资源请参考sdk自行调用,本篇只列出核心代码。
代码实现
/**
* 以图搜图下载视频
* @param channelNum
* @param comeTime
* @param buildingProjectId
* @param nvrAddress
* @return
* @throws InterruptedException
*/
public String getVideoByTime(Integer channelNum, Date comeTime, String buildingProjectId, Integer port, String nvrAddress,String account,String password) throws InterruptedException {
FaceDeviceInfoTable infoTable = new FaceDeviceInfoTable();
infoTable.setDeviceAccount(account);
infoTable.setDevicePort(port);
infoTable.setDeviceIpAddr(nvrAddress);
infoTable.setDevicePassword(password);
NativeLong userId = HCNetSdkUtil