From 1be7edf5fbbd984f35f5c48d89686caf23b9873e Mon Sep 17 00:00:00 2001
From: xc <double72cheng@gmail.com>
Date: Sat, 20 Mar 2021 13:15:54 +0800
Subject: [PATCH] update

---
 src/main/resources/public/index.html |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/main/resources/public/index.html b/src/main/resources/public/index.html
index b002e56..1a53052 100755
--- a/src/main/resources/public/index.html
+++ b/src/main/resources/public/index.html
@@ -127,11 +127,11 @@
             return;
         }
         isPlaying = true;
-        $.get("http://127.0.0.1:8088/monica/test/video", function (data) {
+/*        $.get("http://127.0.0.1:8088/monica/test/video", function (data) {
                 h5lc.play(data)
             }
-        );
-        //play();
+        );*/
+        play();
         $playDom.style.display = 'none';
         $stopDom.style.display = 'block';
     }, false);
@@ -142,7 +142,12 @@
         }
 
         isPlaying = false;
-        stop();
+        $.get("http://127.0.0.1:8088/monica/video/stop?param=live/test", function () {
+                alert("视频流已关闭");
+                h5lc.close()
+            }
+        );
+        //stop();
 
         $playDom.style.display = 'block';
         $stopDom.style.display = 'none';
@@ -154,6 +159,7 @@
         //h5lc.play("ws://pull2.afb1188.com/live/" + stream + ".flv")
         //h5lc.play("ws://localhost:8080/live/" + stream)
         h5lc.play("ws://localhost:8080/live/test.flv")
+        //h5lc.play("ws://localhost:8072/live/test.flv")
         // h5lc.play("ws://119.9.118.39:8080/live/user1", canvas)
         // h5lc.play("ws://test.qihaipi.com/gnddragon/test.flv", canvas)
         //  h5lc.play("ws://localhost:8080/live/test.flv", canvas)

--
Gitblit v1.9.1