From 197a596d8787eaab061190dc66977e33b6bcee96 Mon Sep 17 00:00:00 2001
From: ‘liusuyi’ <1951119284@qq.com>
Date: 星期三, 06 九月 2023 14:27:00 +0800
Subject: [PATCH] 优化电子围栏报警触发条件

---
 ard-work/src/main/resources/templates/test.html |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/ard-work/src/main/resources/templates/test.html b/ard-work/src/main/resources/templates/test.html
index 15e9981..25cbd19 100644
--- a/ard-work/src/main/resources/templates/test.html
+++ b/ard-work/src/main/resources/templates/test.html
@@ -130,8 +130,9 @@
         </div>
     </div>
 </div>
-<script th:inline="javascript">
-    var cameraId, opt, token;
+<script th:inline="javascript" th:type="module">
+
+    var cameraId, opt, optOpen, optClose, token;
     window.onload = function () {
         $.ajax({
             url: "../hik/list",
@@ -161,7 +162,6 @@
                 }
             }
         })
-
         opt = {"username": "admin", "password": "admin123"};
         $.ajax({
             headers: {
@@ -789,7 +789,8 @@
 
     //棰勮娴峰悍鐩告満
     function realViewHik(serverip, elem, username, password, ipaddr, port) {
-        webRtcServer = new WebRtcStreamer(elem, "http://" + serverip + ":8000");
+       // webRtcServer = new WebRtcStreamer(elem, "http://" + serverip + ":8000");
+        webRtcServer = new WebRtcStreamer(elem, "http://192.168.1.227:9000");
         let rtspUrl = "rtsp://" + username + ":" + password + "@" + ipaddr + ":" + port + "/ch1/main/av_stream";
         let option = "rtptransport=tcp";
         console.log("rtsp鍦板潃锛�" + rtspUrl);

--
Gitblit v1.9.3