diff --git a/app/Http/Home/Views/teacher/list.volt b/app/Http/Home/Views/teacher/list.volt
index 8d8fb097..2b850ea3 100644
--- a/app/Http/Home/Views/teacher/list.volt
+++ b/app/Http/Home/Views/teacher/list.volt
@@ -6,7 +6,7 @@
diff --git a/db/migrations/20210403184518.php b/db/migrations/20210403184518.php
index cc46ce94..787453a3 100644
--- a/db/migrations/20210403184518.php
+++ b/db/migrations/20210403184518.php
@@ -155,7 +155,7 @@ final class V20210403184518 extends AbstractMigration
'id' => 5,
'parent_id' => 0,
'level' => 1,
- 'name' => '教师',
+ 'name' => '师资',
'path' => ',5,',
'target' => '_self',
'url' => '/teacher/list',
diff --git a/public/static/home/css/common.css b/public/static/home/css/common.css
index e5e6fb4f..e06d22d2 100644
--- a/public/static/home/css/common.css
+++ b/public/static/home/css/common.css
@@ -1337,6 +1337,26 @@
height: 428px;
}
+
+.play-mask {
+ top: 50%;
+ left: 50%;
+ z-index: 8;
+ position: absolute;
+ margin-top: -32px;
+ margin-left: -32px;
+}
+
+.play-mask .layui-icon-play {
+ color: white;
+ cursor: pointer;
+ font-size: 64px;
+}
+
+.play-mask .layui-icon-play:hover {
+ color: #00a4ff;
+}
+
.chat-wrap .layui-card-header {
text-align: center;
}
diff --git a/public/static/home/js/chapter.live.player.js b/public/static/home/js/chapter.live.player.js
index d842d16e..4a0b7487 100644
--- a/public/static/home/js/chapter.live.player.js
+++ b/public/static/home/js/chapter.live.player.js
@@ -55,6 +55,14 @@ layui.use(['jquery', 'helper'], function () {
stop();
});
+ /**
+ * 播放器中央播放按钮点击事件
+ */
+ $('#play-mask').on('click', function () {
+ $(this).hide();
+ player.toggle();
+ });
+
function start() {
if (interval != null) {
clearInterval(interval);
diff --git a/public/static/home/js/chapter.vod.player.js b/public/static/home/js/chapter.vod.player.js
index d1041bf6..c072658f 100644
--- a/public/static/home/js/chapter.vod.player.js
+++ b/public/static/home/js/chapter.vod.player.js
@@ -51,6 +51,14 @@ layui.use(['jquery', 'helper'], function () {
ended();
});
+ /**
+ * 播放器中央播放按钮点击事件
+ */
+ $('#play-mask').on('click', function () {
+ $(this).hide();
+ player.toggle();
+ });
+
var position = parseInt(lastPosition);
/**