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); } // 新增:用户主动断开连接的方法