From b4f9cf2b50f07b186c7d9785d77b1e2e7d8be419 Mon Sep 17 00:00:00 2001 From: Song367 <601337784@qq.com> Date: Mon, 11 Aug 2025 14:05:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/index.js b/src/index.js index 5d71285..d88608e 100644 --- a/src/index.js +++ b/src/index.js @@ -1256,18 +1256,18 @@ class WebRTCChat { // 清理视频缓存和预创建流 this.clearVideoCache(); - setTimeout(() => { - // 显示头像,隐藏视频 - if (this.videoContainer) { - this.videoContainer.classList.remove('calling'); - } + // setTimeout(() => { + // // 显示头像,隐藏视频 + // if (this.videoContainer) { + // this.videoContainer.classList.remove('calling'); + // } - // 重新初始化重要视频流 - this.precreateImportantVideos().then(() => { - // 重新启动默认视频流 - this.startDefaultVideoStream(); - }); - }, 300); + // // 重新初始化重要视频流 + // this.precreateImportantVideos().then(() => { + // // 重新启动默认视频流 + // this.startDefaultVideoStream(); + // }); + // }, 300); } // 新增:用户主动断开连接的方法