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) });