From 49d678730ef63c6d5b6425ac9ffd45cefc56c048 Mon Sep 17 00:00:00 2001
From: xc <double72cheng@gmail.com>
Date: Thu, 22 Apr 2021 18:58:26 +0800
Subject: [PATCH] 组件化开发准备工作

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

diff --git a/src/main/resources/public/monitor/live.html b/src/main/resources/public/monitor/live.html
index 6e4ebc4..a7a964c 100755
--- a/src/main/resources/public/monitor/live.html
+++ b/src/main/resources/public/monitor/live.html
@@ -8,21 +8,6 @@
     <link rel="stylesheet" href="../css/font-awesome.min.css">
     <link rel="stylesheet" href="../css/controles.css">
 
-    <style>
-        .player-wrapper {
-            width: 900px;
-            height: 500px;
-            /*overflow-y: auto;*/
-            margin: 0 auto;
-            text-align: center;
-        }
-
-        /*        .player-wrapper canvas {
-                    width: 100%;
-                    height: 100%;
-                }*/
-
-    </style>
 </head>
 
 <body>
@@ -56,15 +41,10 @@
 
 <script src="../js/ajax.js"></script>
 <script src="../js/renderer.js"></script>
-<script type="text/javascript" src="../js/jquery.min.js"></script>
+<script src="../js/jquery.min.js"></script>
 
 
 <script>
-    var hourTimestamp = 3600 * 1000;
-    var dayTimestamp = hourTimestamp * 24;
-    var currentTimer;
-
-
     window.onkeydown = function () {
         h5lc.fullscreen = false
     }
@@ -77,7 +57,7 @@
     var isPlaying = false;
     let source = queryParam('source') || 'localhost';
 
-    var h5lc = new Jessibuca({container, decoder: "../js/timeline/ff.js", videoBuffer: 0});
+    var h5lc = new Jessibuca({container, decoder: "../js/jessibuca/ff.js", videoBuffer: 0});
 
     h5lc.onLoad = function () {
         //this.play("wss://pulls.1234326.cn/live/L01.flv")
@@ -92,14 +72,7 @@
         $stop.style.display = 'inline';
     }
     $play.addEventListener('click', function () {
-        if (isPlaying) {
-            return;
-        }
         isPlaying = true;
-        /*        $.get("http://127.0.0.1:8088/monica/test/video", function (data) {
-                        h5lc.play(data)
-                    }
-                );*/
         h5lc.play("ws://172.16.30.113:8082/live/ff80808178af424e0178af44e677000343616d657261.flv")
         $play.style.display = 'none';
         $stop.style.display = 'inline';
@@ -152,11 +125,7 @@
     }
 
     function playerShow() {
-        if (isLive) {
-            $(".player .control").css("display", "block")
-        } else {
-            $(".player .control").css("display", "none")
-        }
+        $(".player .control").css("display", "block")
     }
 
     function playerHidden() {

--
Gitblit v1.9.1