| | |
| | | import com.sun.jna.ptr.IntByReference; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | |
| | | import java.awt.*; |
| | | import java.io.File; |
| | |
| | | public class DHCapturePictureClient { |
| | | private Logger logger = LoggerFactory.getLogger(getClass()); |
| | | |
| | | private String url = "http://localhost:48080/admin-api/data/video/camera/DHCaptureCallback"; |
| | | // private String url = "http://localhost:48080/admin-api/data/video/camera/DHCaptureCallback"; |
| | | // @Value("${video.dahua.callback.url}") |
| | | // public String url; |
| | | |
| | | // 登陆句柄 |
| | | public static NetSDKLib netsdk = NetSDKLib.NETSDK_INSTANCE; |
| | |
| | | Map<String, String> params = new HashMap<>(); |
| | | params.put("strFileName", strFileName); |
| | | params.put("cmdSerial", cmdSerial); |
| | | HttpRequest.doPost(url, JSON.toJSONString(params), "utf-8", ""); |
| | | HttpRequest.doPost(DHConfiguration.staticUrl, JSON.toJSONString(params), "utf-8", ""); |
| | | } |
| | | return true; |
| | | } catch (Exception ex) { |