From fa6933da756937fa8355fd1b04ee4f998bdb42d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Mon, 15 Dec 2025 16:55:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/h5-hls-video/h5-hls-video.vue | 8 ++- .../components/live-content/live-content.vue | 49 +++++++++++++------ 2 files changed, 40 insertions(+), 17 deletions(-) diff --git a/pages/plugins/live/pull/components/h5-hls-video/h5-hls-video.vue b/pages/plugins/live/pull/components/h5-hls-video/h5-hls-video.vue index 76795cb0..47531cd1 100644 --- a/pages/plugins/live/pull/components/h5-hls-video/h5-hls-video.vue +++ b/pages/plugins/live/pull/components/h5-hls-video/h5-hls-video.vue @@ -368,7 +368,13 @@ // 播放视频流 initHlsPlayer(src) { if (hlsjs.isSupported()) { - this.hlsPlayer = new hlsjs() + this.hlsPlayer = new hlsjs({ + manifestLoadingTimeOut: 30000, // 设置播放列表加载超时时间(毫秒) + fragLoadingTimeOut: 3000, // 设置片段加载超时时间(毫秒) + maxLiveSyncPlaybackRate: 1, // 最大追赶播放速率(1.05倍速) + lowLatencyMode: true, // 启用低延迟模式 + debug: false // 启用调试日志 + }) this.hlsPlayer.loadSource(src) this.hlsPlayer.attachMedia(this.videoEl) this.hlsPlayer.on(hlsjs.Events.MANIFEST_PARSED, () => { diff --git a/pages/plugins/live/pull/components/live-content/live-content.vue b/pages/plugins/live/pull/components/live-content/live-content.vue index 1af8760d..a8057b0e 100644 --- a/pages/plugins/live/pull/components/live-content/live-content.vue +++ b/pages/plugins/live/pull/components/live-content/live-content.vue @@ -31,15 +31,15 @@ - + - + - + @@ -102,11 +102,16 @@ {{ message_num }}条新消息 - + - - 讲解中 + + + 讲解中 + + + + @@ -308,7 +313,9 @@ is_socket_error: false, socket_error_content: '连接失败点击重试', // socket连接成功 - is_socket_success: false + is_socket_success: false, + // 是否展示讲解商品信息 + is_show_explain_goods: true, } }, watch: { @@ -1013,7 +1020,7 @@ opacity: 0; } } - +/* 讲解商品信息 */ .explain-goods { width: 200rpx; background: #fff; @@ -1023,14 +1030,24 @@ right: 0; bottom: 20rpx; border-radius: 20rpx; -} -.explain-subscript { - position: absolute; - left: 5rpx; - top: 5rpx; - padding: 0rpx 8rpx; - background: rgba(40,40,40,0.45); - border-radius: 10rpx; + overflow: hidden; + .explain-subscript { + position: absolute; + left: 5rpx; + top: 5rpx; + right: 5rpx; + .explain-progress { + padding: 0rpx 8rpx; + background: rgba(40,40,40,0.45); + border-radius: 10rpx; + } + .explain-close { + margin-right: 5rpx; + padding: 6rpx; + background: rgba(40,40,40,0.45); + border-radius: 50rpx; + } + } } /* #ifdef MP-WEIXIN | APP-PLUS */ .bulletin-area {