From d9b8699e9978c6f9d74c5e87ac663e4b9476c1cf Mon Sep 17 00:00:00 2001
From: xc <double72cheng@gmail.com>
Date: Sun, 25 Apr 2021 16:56:30 +0800
Subject: [PATCH] 历史监控 插件化

---
 src/main/resources/public/monitor/live.html |   18 +++---------------
 1 files changed, 3 insertions(+), 15 deletions(-)

diff --git a/src/main/resources/public/monitor/live.html b/src/main/resources/public/monitor/live.html
index 71237a4..d36f3e1 100755
--- a/src/main/resources/public/monitor/live.html
+++ b/src/main/resources/public/monitor/live.html
@@ -100,7 +100,7 @@
         window.streamPath = "";
         $.ajax({
             type: "get",
-            url: "../../webapi/equipment/getPlayUrl?url=" + video_url,
+            url: "../../webapi/media/live?param=" + video_url,
             timeout: 5000,
             async: false,
             success: function (result) {
@@ -126,22 +126,10 @@
         jessibuca.destroy();
         if (streamPath) {
             $.ajax({
-                type: "delete",
-                url: "../../webapi/equipment/deleteStream?streamPath=" + streamPath,
+                type: "get",
+                url: "../../webapi/media/stop?param=" + streamPath,
                 async: false,
                 success: function (result) {
-                    layer_flag = 'open';
-                    $('.aside-right').css('left', '81%');
-                    $('.aside-right').css('transition', 'left 2s');
-                    $('.aside-left').css('left', '1%');
-                    $('.aside-left').css('transition', 'left 2s');
-
-                    $('#switch_CloseOpen').text("隐藏图层");
-                    setTimeout(function () {
-                        $(".main .main-center .main-center-right").css('display', 'flex');
-                        $(".main .main-center .main-center-left").css('display', 'flex');
-                        $(".main .main-center .main-base-container").css("display", "none");
-                    }, 900);
                 }
             });
         }

--
Gitblit v1.9.1