From 4f2a79007f161d6239a26f2bc493d69d93bf7831 Mon Sep 17 00:00:00 2001
From: xc <double72cheng@gmail.com>
Date: Tue, 27 Apr 2021 10:55:00 +0800
Subject: [PATCH] 历史监控

---
 src/main/resources/public/monitor/history.html      |    3 +++
 src/main/resources/public/js/history/historypler.js |    5 ++++-
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/public/js/history/historypler.js b/src/main/resources/public/js/history/historypler.js
index 5c88ae1..6f08c17 100755
--- a/src/main/resources/public/js/history/historypler.js
+++ b/src/main/resources/public/js/history/historypler.js
@@ -89,7 +89,7 @@
         });
     };
 
-
+    //关闭流
     Historypler.prototype.closeVideo = function (streamPath) {
         if (streamPath && typeof streamPath === "string") {
             $.ajax({
@@ -103,6 +103,9 @@
         }
     };
 
+    Historypler.prototype.close = function () {
+        this.closeVideo(this.stream_path);
+    };
 
     window.Historypler = Historypler;
 
diff --git a/src/main/resources/public/monitor/history.html b/src/main/resources/public/monitor/history.html
index 4924882..7e33e23 100755
--- a/src/main/resources/public/monitor/history.html
+++ b/src/main/resources/public/monitor/history.html
@@ -29,6 +29,9 @@
         ffurl:"../js/jessibuca/ff.js",
         code:"ff80808178af424e0178af44e677000343616d657261",
     });
+
+    //关闭流
+    livepler.close();
 </script>
 
 </body>

--
Gitblit v1.9.1