From 89a8526e5d4633f216373b3ccb130b43d6fa19c1 Mon Sep 17 00:00:00 2001 From: 86156 <823267011@qq.com> Date: Wed, 1 Oct 2025 23:59:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B7=A5=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/video/device/component/cusPlayer.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/rtsp-vue/src/views/video/device/component/cusPlayer.vue b/rtsp-vue/src/views/video/device/component/cusPlayer.vue index 19e956a..11dd31a 100644 --- a/rtsp-vue/src/views/video/device/component/cusPlayer.vue +++ b/rtsp-vue/src/views/video/device/component/cusPlayer.vue @@ -75,14 +75,17 @@ export default { isClickPlayBack: false }, flvOptionalConfig: { - enableWorker: true, + enableWorker: false, // 禁用 Worker,便于调试 enableStashBuffer: false, //关闭缓存 - stashInitialSize: 2048, //缓存大小2m + stashInitialSize: 128, // 减小初始缓存,加快启动 lazyLoad: false, - lazyLoadMaxDuration: 40 * 60, + lazyLoadMaxDuration: 3 * 60, autoCleanupSourceBuffer: true, - autoCleanupMaxBackwardDuration: 35 * 60, - autoCleanupMinBackwardDuration: 30 * 60 + autoCleanupMaxBackwardDuration: 3 * 60, + autoCleanupMinBackwardDuration: 2 * 60, + // 关键:启用详细日志 + enableLogging: true, + logLevel: 'debug' } //flv.js可选配置项 [flv.js配置](https://github.com/bilibili/flv.js/blob/master/docs/api.md#config) });