From b01721ab8a824f4a144ce55a8de6767bbe3f5d0a Mon Sep 17 00:00:00 2001
From: xc <double72cheng@gmail.com>
Date: Fri, 23 Apr 2021 17:01:09 +0800
Subject: [PATCH] 直播流组件 init
---
src/main/resources/public/css/controles.css | 2 +-
src/main/resources/public/js/live/livepler.js | 16 ++++++++++++++--
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/src/main/resources/public/css/controles.css b/src/main/resources/public/css/controles.css
index 38d8a06..3eef4d5 100644
--- a/src/main/resources/public/css/controles.css
+++ b/src/main/resources/public/css/controles.css
@@ -31,7 +31,7 @@
border-radius: 10px;
left: 60%;
bottom: -10px;
- transform: translateX(-50%);
+ transform: translateX(-48%);
}
.player .control div{
display: inline-block;
diff --git a/src/main/resources/public/js/live/livepler.js b/src/main/resources/public/js/live/livepler.js
index 765278c..4f20afe 100755
--- a/src/main/resources/public/js/live/livepler.js
+++ b/src/main/resources/public/js/live/livepler.js
@@ -1,4 +1,4 @@
-!(function () {
+;!(function () {
window.onkeydown = function () {
h5lc.fullscreen = false
}
@@ -20,4 +20,16 @@
" </div>");
$("#jessibucaContainer").append(_content);
-})();
+
+ function constructLive(opt) {
+ this._opt = opt;
+ if (typeof opt.container === "string") {
+ this._opt.container = document.getElementById(opt.container);
+ }
+ if (!this._opt.container) {
+ throw new Error('Jessibuca need container option');
+ return;
+ }
+
+}})()
+
--
Gitblit v1.9.1