From 1f7962d0545de446e96ccaa81b33bbf71a69b41b Mon Sep 17 00:00:00 2001
From: ‘liusuyi’ <1951119284@qq.com>
Date: 星期三, 06 九月 2023 12:29:26 +0800
Subject: [PATCH] 增加sdk接口getGisInfo 调整ptz的websocket上传增加视场角

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

diff --git a/ard-work/src/main/resources/templates/test.html b/ard-work/src/main/resources/templates/test.html
index a9acd06..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,8 +162,7 @@
                 }
             }
         })
-
-        opt = {"username": "liusuyi", "password": "5959932"};
+        opt = {"username": "admin", "password": "admin123"};
         $.ajax({
             headers: {
                 'Accept': 'application/json',
@@ -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