|
@@ -979,14 +979,14 @@ public class GeoHazardMonitorTokenController {
|
|
|
// String[] parts = str.split("/");
|
|
|
// log.info("--------------parts--------------:" + parts);
|
|
|
// if (parts.length == 2) {
|
|
|
- // CompletableFuture.runAsync(() -> {
|
|
|
- // try {
|
|
|
- // TimeUnit.SECONDS.sleep(3);
|
|
|
- // } catch (InterruptedException e) {
|
|
|
- // e.printStackTrace();
|
|
|
- // }
|
|
|
- // cameraUtil.stopStream(parts[0], parts[1]);
|
|
|
- // });
|
|
|
+ CompletableFuture.runAsync(() -> {
|
|
|
+ try {
|
|
|
+ TimeUnit.SECONDS.sleep(3);
|
|
|
+ } catch (InterruptedException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ cameraUtil.heartbeatGetPlayFlv();
|
|
|
+ });
|
|
|
// }
|
|
|
// }
|
|
|
// }
|
|
@@ -1067,6 +1067,14 @@ public class GeoHazardMonitorTokenController {
|
|
|
// }
|
|
|
// }
|
|
|
//}
|
|
|
+ CompletableFuture.runAsync(() -> {
|
|
|
+ try {
|
|
|
+ TimeUnit.SECONDS.sleep(3);
|
|
|
+ } catch (InterruptedException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ cameraUtil.heartbeatGetPlayFlv();
|
|
|
+ });
|
|
|
} else {
|
|
|
log.info("-------------->>已进入拉一路视频");
|
|
|
log.info("list1-------------->>" + list1.size());
|
|
@@ -1118,6 +1126,14 @@ public class GeoHazardMonitorTokenController {
|
|
|
// }
|
|
|
// }
|
|
|
//}
|
|
|
+ CompletableFuture.runAsync(() -> {
|
|
|
+ try {
|
|
|
+ TimeUnit.SECONDS.sleep(3);
|
|
|
+ } catch (InterruptedException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ cameraUtil.heartbeatGetPlayFlv();
|
|
|
+ });
|
|
|
}
|
|
|
twoMap.put("currentStream", playFlv);
|
|
|
twoMap.put("cameraCode", list1.get(0).getCameraCode());
|
|
@@ -1211,6 +1227,14 @@ public class GeoHazardMonitorTokenController {
|
|
|
// }
|
|
|
// }
|
|
|
// }
|
|
|
+ CompletableFuture.runAsync(() -> {
|
|
|
+ try {
|
|
|
+ TimeUnit.SECONDS.sleep(3);
|
|
|
+ } catch (InterruptedException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ cameraUtil.heartbeatGetPlayFlv();
|
|
|
+ });
|
|
|
// List<String> finalCodeList2 = codeList;
|
|
|
// CompletableFuture.runAsync(() -> {
|
|
|
// log.info("-------------->>finalCodeList2-------" + finalCodeList2);
|
|
@@ -1277,6 +1301,14 @@ public class GeoHazardMonitorTokenController {
|
|
|
// }
|
|
|
// }
|
|
|
// }
|
|
|
+ CompletableFuture.runAsync(() -> {
|
|
|
+ try {
|
|
|
+ TimeUnit.SECONDS.sleep(3);
|
|
|
+ } catch (InterruptedException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ cameraUtil.heartbeatGetPlayFlv();
|
|
|
+ });
|
|
|
}
|
|
|
twoMap.put("currentStream", playFlv);
|
|
|
twoMap.put("cameraCode", list1.get(0).getCameraCode());
|