From bd65d9434810914f95c81d53a91fa0756224d3c2 Mon Sep 17 00:00:00 2001
From: xc <double72cheng@gmail.com>
Date: Tue, 06 Apr 2021 19:03:43 +0800
Subject: [PATCH] update
---
src/main/resources/public/index.html | 16 +++++++++++-----
1 files changed, 11 insertions(+), 5 deletions(-)
diff --git a/src/main/resources/public/index.html b/src/main/resources/public/index.html
index b002e56..bd0ce9c 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';
@@ -153,7 +158,8 @@
//h5lc.play("ws://" + (firstResponseIp || source) + ":8080/live/" + stream)
//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://172.16.30.113:8082/live/video1.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