From 31877b872930ca2c5b94bf55b1218dfd3bff493d Mon Sep 17 00:00:00 2001 From: Song367 <601337784@qq.com> Date: Wed, 13 Aug 2025 13:26:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E7=94=9F=E6=88=90=E5=BC=80?= =?UTF-8?q?=E5=9C=BA=E7=99=BD=E8=A7=A6=E5=8F=91=E6=97=B6=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 3a7626c..b0f4fae 100644 --- a/src/index.js +++ b/src/index.js @@ -538,8 +538,6 @@ class WebRTCChat { // 预创建重要视频流 async precreateImportantVideos() { - // 在初始化完成后生成开场白音频 - await this.initializeOpeningAudio(); if (this.isInitialized) return; @@ -1260,6 +1258,9 @@ class WebRTCChat { this.showConnectionWaiting(); // 切换到通话中图标 this.switchToCallingIcon(); + + // 在初始化完成后生成开场白音频 + await this.initializeOpeningAudio(); // 现在才开始显示视频 await this.startDefaultVideoStream();