基础版 优化
parent
bc09910c91
commit
af5dcc45a6
@ -0,0 +1,55 @@
|
|||||||
|
package com.zhehekeji.web.config;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
@Component
|
||||||
|
@ConfigurationProperties
|
||||||
|
@Data
|
||||||
|
public class ConfigProperties {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 海康球机类型
|
||||||
|
*/
|
||||||
|
public static Integer HIK_CAMERA = 1;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 中威球机
|
||||||
|
*/
|
||||||
|
public static Integer JOYWARE_CAMERA = 0;
|
||||||
|
|
||||||
|
private CameraConfig cameraConfig;
|
||||||
|
|
||||||
|
private VideoStyleConfig videoStyleConfig;
|
||||||
|
|
||||||
|
private SavePath savePath;
|
||||||
|
|
||||||
|
private Integer serverMode;
|
||||||
|
|
||||||
|
private String userUrl;
|
||||||
|
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public static class CameraConfig{
|
||||||
|
|
||||||
|
private Integer cameraType;
|
||||||
|
private String cameraPassword;
|
||||||
|
|
||||||
|
private String cameraUser;
|
||||||
|
|
||||||
|
private Integer cameraPort;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public static class VideoStyleConfig{
|
||||||
|
private Integer videoStyleRow;
|
||||||
|
private Integer videoStyleColumn;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public static class SavePath{
|
||||||
|
private String mediaPath;
|
||||||
|
private String mp4Path;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,84 +0,0 @@
|
|||||||
package com.zhehekeji.web.lib;
|
|
||||||
|
|
||||||
import com.sun.jna.Pointer;
|
|
||||||
import com.zhehekeji.web.entity.Order;
|
|
||||||
import com.zhehekeji.web.mapper.OrderMapper;
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
|
||||||
|
|
||||||
import java.util.Date;
|
|
||||||
|
|
||||||
@Slf4j
|
|
||||||
public class CallBack {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 球机掉线回调
|
|
||||||
*/
|
|
||||||
public static class DisConnectCallBack implements NetSDKLib.fDisConnect {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void invoke(NetSDKLib.LLong lLoginID, String pchDVRIP, int nDVRPort, Pointer dwUser) {
|
|
||||||
Integer cameraId = CameraConnMap.getCameraIdByLoginId(lLoginID);
|
|
||||||
log.error("球机:{}掉线",cameraId);
|
|
||||||
//CameraConnMap.disConn(cameraId);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* mp4下载回调
|
|
||||||
*/
|
|
||||||
public static class Mp4ReceiveCB implements NetSDKLib.fTimeDownLoadPosCallBack {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void invoke(NetSDKLib.LLong lPlayHandle, int dwTotalSize, int dwDownLoadSize, int index, NetSDKLib.NET_RECORDFILE_INFO.ByValue recordfileinfo, Pointer dwUser) {
|
|
||||||
if(dwDownLoadSize == -1) {
|
|
||||||
OrderRealtime.overDownload(lPlayHandle);
|
|
||||||
StopDownLoadThread stopDownLoadThread = new StopDownLoadThread(lPlayHandle);
|
|
||||||
stopDownLoadThread.start();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static class HaveReConnect implements NetSDKLib.fHaveReConnect {
|
|
||||||
@Override
|
|
||||||
public void invoke(NetSDKLib.LLong m_hLoginHandle, String pchDVRIP, int nDVRPort, Pointer dwUser) {
|
|
||||||
log.info("球机:{}重连,loginId:{}",pchDVRIP,m_hLoginHandle.longValue());
|
|
||||||
System.out.printf("ReConnect Device[%s] Port[%d]\n", pchDVRIP, nDVRPort);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static class CBPTZStatusProcCallBack implements NetSDKLib.fPTZStatusProcCallBack{
|
|
||||||
|
|
||||||
private CBPTZStatusProcCallBack() {
|
|
||||||
}
|
|
||||||
|
|
||||||
private static class CallBackHolder {
|
|
||||||
private static CBPTZStatusProcCallBack instance = new CBPTZStatusProcCallBack();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static CBPTZStatusProcCallBack getInstance() {
|
|
||||||
return CallBackHolder.instance;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void invoke(NetSDKLib.LLong lLoginId, NetSDKLib.LLong lAttachHandle, Pointer pBuf, int dwBufLen, long dwUser) {
|
|
||||||
NetSDKLib.NET_PTZ_LOCATION_INFO PTZInfo = new NetSDKLib.NET_PTZ_LOCATION_INFO();
|
|
||||||
ToolKits.GetPointerData(pBuf, PTZInfo);
|
|
||||||
// if(PTZInfo.bState == 2){
|
|
||||||
// Integer cameraId = CameraConnMap.getCameraIdByLoginId(lLoginId);
|
|
||||||
// if(cameraId != null){
|
|
||||||
// OrderInfo orderInfo = CameraCaptureMap.getOrderInfoByStreetId(cameraId);
|
|
||||||
// log.info("cameraId:{}",cameraId);
|
|
||||||
// if(orderInfo != null && !"C6".equals(orderInfo.getCode())){
|
|
||||||
// log.info("cameraId:{} 到位 拍照,code:{},orderNUm:{}",cameraId,orderInfo.getCode(),orderInfo.getOrderNum());
|
|
||||||
// //PtzControlModule.pic(cameraId,0,orderInfo);
|
|
||||||
// }
|
|
||||||
// CameraCaptureMap.remove(cameraId);
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
package com.zhehekeji.web.lib;
|
|
||||||
|
|
||||||
import org.springframework.boot.ApplicationArguments;
|
|
||||||
import org.springframework.boot.ApplicationRunner;
|
|
||||||
|
|
||||||
public class CameraAction implements ApplicationRunner {
|
|
||||||
@Override
|
|
||||||
public void run(ApplicationArguments args) throws Exception {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,28 +0,0 @@
|
|||||||
package com.zhehekeji.web.lib;
|
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
@Data
|
|
||||||
public class CameraCaptureMap {
|
|
||||||
|
|
||||||
private static Map<Integer,OrderInfo> cameraMap = new HashMap<>();
|
|
||||||
|
|
||||||
public static void put(Integer cameraId,OrderInfo orderInfo){
|
|
||||||
if(cameraId != null && orderInfo != null){
|
|
||||||
cameraMap.put(cameraId,orderInfo);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void remove(Integer cameraId){
|
|
||||||
cameraMap.remove(cameraId);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static OrderInfo getOrderInfoByStreetId(Integer cameraId){
|
|
||||||
return cameraMap.get(cameraId);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,43 +0,0 @@
|
|||||||
package com.zhehekeji.web.lib;
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
public class CameraConnMap{
|
|
||||||
|
|
||||||
/**
|
|
||||||
* key :cameraId
|
|
||||||
* value: loginId
|
|
||||||
*/
|
|
||||||
public static Map<Integer, NetSDKLib.LLong> cameraMap = new HashMap<>();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* key:loginId
|
|
||||||
* value: cameraId
|
|
||||||
*/
|
|
||||||
public static Map<NetSDKLib.LLong,Integer> loginMap = new HashMap<>();
|
|
||||||
|
|
||||||
public static void conn(Integer cameraId,NetSDKLib.LLong handlerId){
|
|
||||||
synchronized (cameraId.toString().intern()){
|
|
||||||
cameraMap.put(cameraId,handlerId);
|
|
||||||
loginMap.put(handlerId,cameraId);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void disConn(Integer cameraId){
|
|
||||||
synchronized (cameraId.toString().intern()){
|
|
||||||
NetSDKLib.LLong lLong = cameraMap.get(cameraId);
|
|
||||||
cameraMap.remove(cameraId);
|
|
||||||
loginMap.remove(lLong);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static NetSDKLib.LLong getConnId(Integer cameraId){
|
|
||||||
return cameraMap.get(cameraId);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static Integer getCameraIdByLoginId(NetSDKLib.LLong lLong){
|
|
||||||
return loginMap.get(lLong);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,32 +0,0 @@
|
|||||||
package com.zhehekeji.web.lib;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author 251823
|
|
||||||
* @description 订阅云台元数据接口输入参数
|
|
||||||
* @date 2021/02/26
|
|
||||||
*/
|
|
||||||
public class NET_IN_PTZ_STATUS_PROC extends NetSDKLib.SdkStructure{
|
|
||||||
/**
|
|
||||||
* dwSize;
|
|
||||||
*/
|
|
||||||
public int dwSize;
|
|
||||||
/**
|
|
||||||
* 云台通道
|
|
||||||
*/
|
|
||||||
public int nChannel;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 状态回调函数
|
|
||||||
*/
|
|
||||||
public NetSDKLib.fPTZStatusProcCallBack cbPTZStatusProc;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 用户数据
|
|
||||||
*/
|
|
||||||
public long dwUser;
|
|
||||||
|
|
||||||
public NET_IN_PTZ_STATUS_PROC(){
|
|
||||||
this.dwSize = this.size();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,124 +0,0 @@
|
|||||||
package com.zhehekeji.web.lib;
|
|
||||||
|
|
||||||
import com.sun.jna.Memory;
|
|
||||||
import com.sun.jna.Native;
|
|
||||||
import com.sun.jna.Pointer;
|
|
||||||
|
|
||||||
import java.io.UnsupportedEncodingException;
|
|
||||||
import java.nio.CharBuffer;
|
|
||||||
|
|
||||||
|
|
||||||
/** Provides a temporary allocation of an immutable C string
|
|
||||||
* (<code>const char*</code> or <code>const wchar_t*</code>) for use when
|
|
||||||
* converting a Java String into a native memory function argument.
|
|
||||||
*
|
|
||||||
* @author Todd Fast, todd.fast@sun.com
|
|
||||||
* @author twall@users.sf.net
|
|
||||||
*/
|
|
||||||
public class NativeString implements CharSequence, Comparable<Object> {
|
|
||||||
|
|
||||||
private Pointer pointer;
|
|
||||||
private boolean wide;
|
|
||||||
|
|
||||||
/** Create a native string (NUL-terminated array of <code>char</code>).<p>
|
|
||||||
* If the system property <code>jna.encoding</code> is set, its value will
|
|
||||||
* be used to encode the native string. If not set or if the encoding
|
|
||||||
* is unavailable, the default platform encoding will be used.
|
|
||||||
*/
|
|
||||||
public NativeString(String string) {
|
|
||||||
this(string, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Create a native string as a NUL-terminated array of <code>wchar_t</code>
|
|
||||||
* (if <code>wide</code> is true) or <code>char</code>.<p>
|
|
||||||
* If the system property <code>jna.encoding</code> is set, its value will
|
|
||||||
* be used to encode the native <code>char</code>string.
|
|
||||||
* If not set or if the encoding is unavailable, the default platform
|
|
||||||
* encoding will be used.
|
|
||||||
*
|
|
||||||
* @param string value to write to native memory
|
|
||||||
* @param wide whether to store the String as <code>wchar_t</code>
|
|
||||||
*/
|
|
||||||
public NativeString(String string, boolean wide) {
|
|
||||||
if (string == null) {
|
|
||||||
throw new NullPointerException("String must not be null");
|
|
||||||
}
|
|
||||||
// Allocate the memory to hold the string. Note, we have to
|
|
||||||
// make this 1 element longer in order to accommodate the terminating
|
|
||||||
// NUL (which is generated in Pointer.setString()).
|
|
||||||
this.wide = wide;
|
|
||||||
if (wide) {
|
|
||||||
int len = (string.length() + 1 ) * Native.WCHAR_SIZE;
|
|
||||||
pointer = new Memory(len);
|
|
||||||
pointer.setString(0, string);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
byte[] data = getBytes(string);
|
|
||||||
pointer = new Memory(data.length + 1);
|
|
||||||
pointer.write(0, data, 0, data.length);
|
|
||||||
pointer.setByte(data.length, (byte)0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static byte[] getBytes(String s) {
|
|
||||||
try {
|
|
||||||
return getBytes(s, System.getProperty("jna.encoding"));
|
|
||||||
}
|
|
||||||
catch (UnsupportedEncodingException e) {
|
|
||||||
return s.getBytes();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Return a byte array corresponding to the given String, using the given
|
|
||||||
encoding.
|
|
||||||
*/
|
|
||||||
static byte[] getBytes(String s, String encoding) throws UnsupportedEncodingException {
|
|
||||||
if (encoding != null) {
|
|
||||||
return s.getBytes(encoding);
|
|
||||||
}
|
|
||||||
return s.getBytes();
|
|
||||||
}
|
|
||||||
|
|
||||||
public int hashCode() {
|
|
||||||
return toString().hashCode();
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean equals(Object other) {
|
|
||||||
|
|
||||||
if (other instanceof CharSequence) {
|
|
||||||
return compareTo(other) == 0;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String toString() {
|
|
||||||
String s = wide ? "const wchar_t*" : "const char*";
|
|
||||||
s += "(" + pointer.getString(0) + ")";
|
|
||||||
return s;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Pointer getPointer() {
|
|
||||||
return pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
public char charAt(int index) {
|
|
||||||
return toString().charAt(index);
|
|
||||||
}
|
|
||||||
|
|
||||||
public int length() {
|
|
||||||
return toString().length();
|
|
||||||
}
|
|
||||||
|
|
||||||
public CharSequence subSequence(int start, int end) {
|
|
||||||
return CharBuffer.wrap(toString()).subSequence(start, end);
|
|
||||||
}
|
|
||||||
|
|
||||||
public int compareTo(Object other) {
|
|
||||||
|
|
||||||
if (other == null)
|
|
||||||
return 1;
|
|
||||||
|
|
||||||
return toString().compareTo(other.toString());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@ -1,9 +1,11 @@
|
|||||||
package com.zhehekeji.web.lib;
|
package com.zhehekeji.web.lib.joyware;
|
||||||
|
|
||||||
import com.sun.jna.Pointer;
|
import com.sun.jna.Pointer;
|
||||||
import com.zhehekeji.common.util.PathUtil;
|
import com.zhehekeji.common.util.PathUtil;
|
||||||
import com.zhehekeji.web.entity.Order;
|
import com.zhehekeji.web.entity.Order;
|
||||||
import com.zhehekeji.web.entity.Stock;
|
import com.zhehekeji.web.entity.Stock;
|
||||||
|
import com.zhehekeji.web.lib.OrderCmdSerial;
|
||||||
|
import com.zhehekeji.web.lib.OrderInfo;
|
||||||
import com.zhehekeji.web.mapper.OrderMapper;
|
import com.zhehekeji.web.mapper.OrderMapper;
|
||||||
import com.zhehekeji.web.mapper.StockMapper;
|
import com.zhehekeji.web.mapper.StockMapper;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
@ -0,0 +1,112 @@
|
|||||||
|
package com.zhehekeji.web.lib.joyware;
|
||||||
|
|
||||||
|
import com.sun.jna.Pointer;
|
||||||
|
import com.zhehekeji.web.lib.HikLoginModule;
|
||||||
|
import com.zhehekeji.web.lib.OrderRealtime;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author 251823
|
||||||
|
* @description 订阅云台元数据接口输入参数
|
||||||
|
* @date 2021/02/26
|
||||||
|
*/
|
||||||
|
public class NET_IN_PTZ_STATUS_PROC extends NetSDKLib.SdkStructure{
|
||||||
|
/**
|
||||||
|
* dwSize;
|
||||||
|
*/
|
||||||
|
public int dwSize;
|
||||||
|
/**
|
||||||
|
* 云台通道
|
||||||
|
*/
|
||||||
|
public int nChannel;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 状态回调函数
|
||||||
|
*/
|
||||||
|
public NetSDKLib.fPTZStatusProcCallBack cbPTZStatusProc;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户数据
|
||||||
|
*/
|
||||||
|
public long dwUser;
|
||||||
|
|
||||||
|
public NET_IN_PTZ_STATUS_PROC(){
|
||||||
|
this.dwSize = this.size();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
|
public static class CallBack {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 球机掉线回调
|
||||||
|
*/
|
||||||
|
public static class DisConnectCallBack implements NetSDKLib.fDisConnect {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void invoke(NetSDKLib.LLong lLoginID, String pchDVRIP, int nDVRPort, Pointer dwUser) {
|
||||||
|
Integer cameraId = HikLoginModule.CameraConnMap.getCameraIdByLoginId(lLoginID);
|
||||||
|
log.error("球机:{}掉线",cameraId);
|
||||||
|
//CameraConnMap.disConn(cameraId);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* mp4下载回调
|
||||||
|
*/
|
||||||
|
public static class Mp4ReceiveCB implements NetSDKLib.fTimeDownLoadPosCallBack {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void invoke(NetSDKLib.LLong lPlayHandle, int dwTotalSize, int dwDownLoadSize, int index, NetSDKLib.NET_RECORDFILE_INFO.ByValue recordfileinfo, Pointer dwUser) {
|
||||||
|
if(dwDownLoadSize == -1) {
|
||||||
|
OrderRealtime.overDownload(lPlayHandle);
|
||||||
|
StopDownLoadThread stopDownLoadThread = new StopDownLoadThread(lPlayHandle);
|
||||||
|
stopDownLoadThread.start();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class HaveReConnect implements NetSDKLib.fHaveReConnect {
|
||||||
|
@Override
|
||||||
|
public void invoke(NetSDKLib.LLong m_hLoginHandle, String pchDVRIP, int nDVRPort, Pointer dwUser) {
|
||||||
|
log.info("球机:{}重连,loginId:{}",pchDVRIP,m_hLoginHandle.longValue());
|
||||||
|
System.out.printf("ReConnect Device[%s] Port[%d]\n", pchDVRIP, nDVRPort);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class CBPTZStatusProcCallBack implements NetSDKLib.fPTZStatusProcCallBack{
|
||||||
|
|
||||||
|
private CBPTZStatusProcCallBack() {
|
||||||
|
}
|
||||||
|
|
||||||
|
private static class CallBackHolder {
|
||||||
|
private static CBPTZStatusProcCallBack instance = new CBPTZStatusProcCallBack();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static CBPTZStatusProcCallBack getInstance() {
|
||||||
|
return CallBackHolder.instance;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void invoke(NetSDKLib.LLong lLoginId, NetSDKLib.LLong lAttachHandle, Pointer pBuf, int dwBufLen, long dwUser) {
|
||||||
|
NetSDKLib.NET_PTZ_LOCATION_INFO PTZInfo = new NetSDKLib.NET_PTZ_LOCATION_INFO();
|
||||||
|
ToolKits.GetPointerData(pBuf, PTZInfo);
|
||||||
|
// if(PTZInfo.bState == 2){
|
||||||
|
// Integer cameraId = CameraConnMap.getCameraIdByLoginId(lLoginId);
|
||||||
|
// if(cameraId != null){
|
||||||
|
// OrderInfo orderInfo = CameraCaptureMap.getOrderInfoByStreetId(cameraId);
|
||||||
|
// log.info("cameraId:{}",cameraId);
|
||||||
|
// if(orderInfo != null && !"C6".equals(orderInfo.getCode())){
|
||||||
|
// log.info("cameraId:{} 到位 拍照,code:{},orderNUm:{}",cameraId,orderInfo.getCode(),orderInfo.getOrderNum());
|
||||||
|
// //PtzControlModule.pic(cameraId,0,orderInfo);
|
||||||
|
// }
|
||||||
|
// CameraCaptureMap.remove(cameraId);
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib;
|
package com.zhehekeji.web.lib.joyware;
|
||||||
/**
|
/**
|
||||||
* @author 251823
|
* @author 251823
|
||||||
* @description 订阅云台元数据接口输输出参数
|
* @description 订阅云台元数据接口输输出参数
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib;
|
package com.zhehekeji.web.lib.joyware;
|
||||||
|
|
||||||
import com.sun.jna.Platform;
|
import com.sun.jna.Platform;
|
||||||
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.common;
|
package com.zhehekeji.web.lib.joyware.common;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
import javax.swing.border.Border;
|
import javax.swing.border.Border;
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.common;
|
package com.zhehekeji.web.lib.joyware.common;
|
||||||
|
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
import java.util.NoSuchElementException;
|
import java.util.NoSuchElementException;
|
||||||
@ -1,6 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.common;
|
package com.zhehekeji.web.lib.joyware.common;
|
||||||
|
|
||||||
import com.zhehekeji.web.lib.NetSDKLib;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 登录设备设备错误状态
|
* 登录设备设备错误状态
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.common;
|
package com.zhehekeji.web.lib.joyware.common;
|
||||||
import java.util.concurrent.ExecutorService;
|
import java.util.concurrent.ExecutorService;
|
||||||
import java.util.concurrent.Executors;
|
import java.util.concurrent.Executors;
|
||||||
import java.util.concurrent.Future;
|
import java.util.concurrent.Future;
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.common;
|
package com.zhehekeji.web.lib.joyware.common;
|
||||||
|
|
||||||
public interface EventTaskHandler {
|
public interface EventTaskHandler {
|
||||||
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
package com.zhehekeji.web.lib.common;
|
package com.zhehekeji.web.lib.joyware.common;
|
||||||
|
|
||||||
import com.zhehekeji.web.lib.NetSDKLib;
|
import com.zhehekeji.web.lib.joyware.NetSDKLib;
|
||||||
import com.zhehekeji.web.lib.NetSDKLib.*;
|
import com.zhehekeji.web.lib.joyware.NetSDKLib.*;
|
||||||
|
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.ResourceBundle;
|
import java.util.ResourceBundle;
|
||||||
@ -1,6 +1,6 @@
|
|||||||
package com.zhehekeji.web.lib.common;
|
package com.zhehekeji.web.lib.joyware.common;
|
||||||
|
|
||||||
import com.zhehekeji.web.lib.ToolKits;
|
import com.zhehekeji.web.lib.joyware.ToolKits;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.constant;
|
package com.zhehekeji.web.lib.joyware.constant;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 47081
|
* @author 47081
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 47081
|
* @author 47081
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 47081
|
* @author 47081
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 251823
|
* @author 251823
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 251823
|
* @author 251823
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 251823
|
* @author 251823
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 251823
|
* @author 251823
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 251823
|
* @author 251823
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 47081
|
* @author 47081
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 日志查询类型
|
* 日志查询类型
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 47081
|
* @author 47081
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否跨位
|
* 是否跨位
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 47081
|
* @author 47081
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 47081
|
* @author 47081
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 47081
|
* @author 47081
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 251823
|
* @author 251823
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 47081
|
* @author 47081
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
public enum EM_BATTERY_EXIST_STATE {
|
public enum EM_BATTERY_EXIST_STATE {
|
||||||
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
public enum EM_BATTERY_STATE {
|
public enum EM_BATTERY_STATE {
|
||||||
EM_BATTERY_STATE_UNKNOWN(0, "电量未知"),
|
EM_BATTERY_STATE_UNKNOWN(0, "电量未知"),
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 251823
|
* @author 251823
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 251823
|
* @author 251823
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 拉流使能
|
* 拉流使能
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
public enum EM_CAPTURE_PROCESS_END_TYPE {
|
public enum EM_CAPTURE_PROCESS_END_TYPE {
|
||||||
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 命令类型,对应QueryNewSystemInfo接口
|
* 命令类型,对应QueryNewSystemInfo接口
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 47081
|
* @author 47081
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 47081
|
* @author 47081
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 47081
|
* @author 47081
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 默认组合通道绑定模式
|
* 默认组合通道绑定模式
|
||||||
@ -1,6 +1,6 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
import com.zhehekeji.web.lib.structure.*;
|
import com.zhehekeji.web.lib.joyware.structure.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 录播主机组合通道操作
|
* 录播主机组合通道操作
|
||||||
@ -1,6 +1,6 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
import com.zhehekeji.web.lib.structure.*;
|
import com.zhehekeji.web.lib.joyware.structure.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 录播主机录像信息操作
|
* 录播主机录像信息操作
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 课程录像锁定类型
|
* 课程录像锁定类型
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 课程录像压缩类型
|
* 课程录像压缩类型
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 课程录像类型
|
* 课程录像类型
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 课程状态
|
* 课程状态
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
public enum EM_CURRENT_STATE_TYPE {
|
public enum EM_CURRENT_STATE_TYPE {
|
||||||
EM_CURRENT_STATE_UNKNOWN(0, "电流状态未知"),
|
EM_CURRENT_STATE_UNKNOWN(0, "电流状态未知"),
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 47081
|
* @author 47081
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AccessControlCustomPassword记录集中密码的保存方式
|
* AccessControlCustomPassword记录集中密码的保存方式
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 47081
|
* @author 47081
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 探测物体的传感器类型
|
* 探测物体的传感器类型
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 47081
|
* @author 47081
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 47081
|
* @author 47081
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 251823
|
* @author 251823
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 下载数据类型
|
* 下载数据类型
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 下载文件方式
|
* 下载文件方式
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 下载时间类型
|
* 下载时间类型
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
public enum EM_DRIVING_DIRECTION {
|
public enum EM_DRIVING_DIRECTION {
|
||||||
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 47081
|
* @author 47081
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 251823
|
* @author 251823
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 251823
|
* @author 251823
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 智能分析事件类型枚举类
|
* 智能分析事件类型枚举类
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 251823
|
* @author 251823
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 251823
|
* @author 251823
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 47081
|
* @author 47081
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 251823
|
* @author 251823
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 禁停状态
|
* 禁停状态
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.zhehekeji.web.lib.enumeration;
|
package com.zhehekeji.web.lib.joyware.enumeration;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 47081
|
* @author 47081
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue