From aad105ac4cc88813faedf25b5a925acbb63a74e4 Mon Sep 17 00:00:00 2001
From: xc <double72cheng@gmail.com>
Date: Mon, 26 Apr 2021 13:55:03 +0800
Subject: [PATCH] 直播监控组装
---
src/main/resources/public/monitor/history.html | 23 ++++++++++-------------
1 files changed, 10 insertions(+), 13 deletions(-)
diff --git a/src/main/resources/public/monitor/history.html b/src/main/resources/public/monitor/history.html
index d62f76a..1d8168d 100755
--- a/src/main/resources/public/monitor/history.html
+++ b/src/main/resources/public/monitor/history.html
@@ -27,6 +27,9 @@
<script>
+ var video_id;
+ var stream_path;
+
var hourTimestamp = 3600 * 1000;
var dayTimestamp = hourTimestamp * 24;
var currentTimer;
@@ -109,33 +112,27 @@
}
}
- function play_video(video_url) {
- window.rtsp = video_url;
- window.streamPath = "";
+ //播放
+ function play_video(video_id) {
+ window.video_id = video_id;
+ window.stream_path = "";
$.ajax({
type: "get",
url: "../../webapi/media/historical?param=" + video_url+"&startTime="+currentTimer,
timeout: 5000,
async: false,
success: function (result) {
- //$("#iframeSon").attr("src", "../../data/video/public/test.html?url=" + result.jessica);
- var container = document.getElementById("playerContainer");
- jessibuca = new Jessibuca({
- container, decoder: "../../data/video/public/ff.js", videoBuffer: 1,
- isResize: false
- });
-
- jessibuca.onLoad = function () {
+ h5lc.onLoad = function () {
this.play(result.jessica);
}
- $("#close_video").attr("onclick", "close_videoDiv(\"" + result.streamPath + "\")");
window.streamPath = result.streamPath;
}
});
}
+ //关闭
function close_video(streamPath) {
- jessibuca.destroy();
+ h5lc.destroy();
if (streamPath) {
$.ajax({
type: "get",
--
Gitblit v1.9.1