|
@@ -16,6 +16,7 @@ import com.persagy.cameractl.utils.JsonTools;
|
|
import com.persagy.cameractl.utils.OtherTools;
|
|
import com.persagy.cameractl.utils.OtherTools;
|
|
import com.persagy.cameractl.utils.ResultClass;
|
|
import com.persagy.cameractl.utils.ResultClass;
|
|
import com.persagy.cameractl.utils.SdkClient;
|
|
import com.persagy.cameractl.utils.SdkClient;
|
|
|
|
+import com.persagy.socket.IotSocketClient;
|
|
|
|
|
|
import cn.hutool.core.date.DateUnit;
|
|
import cn.hutool.core.date.DateUnit;
|
|
import cn.hutool.core.date.DateUtil;
|
|
import cn.hutool.core.date.DateUtil;
|
|
@@ -441,6 +442,10 @@ public class DahCameraExecuteApi {
|
|
|
|
|
|
/*投屏*/
|
|
/*投屏*/
|
|
public ResultClass touP(Camera dahCamera) {
|
|
public ResultClass touP(Camera dahCamera) {
|
|
|
|
+ if ("Pj3101150010".equals(AllStaticConfig.projectId)) {
|
|
|
|
+ IotSocketClient.connectAndSend(AllStaticConfig.toupIp, AllStaticConfig.toupPort, "C6 11 43 20 02 BB");
|
|
|
|
+ return OtherTools.executeSuccess("投屏成功");
|
|
|
|
+ }
|
|
DpsdkMainWindows dpsdkMainWindows = new DpsdkMainWindows(dahCamera);
|
|
DpsdkMainWindows dpsdkMainWindows = new DpsdkMainWindows(dahCamera);
|
|
int tvWallId = Integer.parseInt(AllStaticConfig.dahuaTvWallId);
|
|
int tvWallId = Integer.parseInt(AllStaticConfig.dahuaTvWallId);
|
|
int screenId = Integer.parseInt(AllStaticConfig.dahuaTvScreenId);
|
|
int screenId = Integer.parseInt(AllStaticConfig.dahuaTvScreenId);
|
|
@@ -450,6 +455,11 @@ public class DahCameraExecuteApi {
|
|
|
|
|
|
/*退出投屏*/
|
|
/*退出投屏*/
|
|
public ResultClass exitTouP(Camera dahCamera) {
|
|
public ResultClass exitTouP(Camera dahCamera) {
|
|
|
|
+ if ("Pj3101150010".equals(AllStaticConfig.projectId)) {
|
|
|
|
+ IotSocketClient.connectAndSend(AllStaticConfig.toupIp, AllStaticConfig.toupPort, "C6 11 43 20 03 BB");
|
|
|
|
+ return OtherTools.executeSuccess("退出大屏成功");
|
|
|
|
+ }
|
|
|
|
+
|
|
DpsdkMainWindows dpsdkMainWindows = new DpsdkMainWindows(dahCamera);
|
|
DpsdkMainWindows dpsdkMainWindows = new DpsdkMainWindows(dahCamera);
|
|
int tvWallId = Integer.parseInt(AllStaticConfig.dahuaTvWallId);
|
|
int tvWallId = Integer.parseInt(AllStaticConfig.dahuaTvWallId);
|
|
int screenId = Integer.parseInt(AllStaticConfig.dahuaTvScreenId);
|
|
int screenId = Integer.parseInt(AllStaticConfig.dahuaTvScreenId);
|