延长等待流时间
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2m54s

This commit is contained in:
Song367 2025-08-08 17:50:51 +08:00
parent b026ee1664
commit a73165a6a1

View File

@ -273,7 +273,7 @@ class WebRTCChat {
const defaultStream = this.precreatedStreams.get(this.defaultVideo); const defaultStream = this.precreatedStreams.get(this.defaultVideo);
// 等待流稳定 // 等待流稳定
await new Promise(resolve => setTimeout(resolve, 500)); await new Promise(resolve => setTimeout(resolve, 1000));
// 检查流是否有效 // 检查流是否有效
if (!defaultStream || defaultStream.getTracks().length === 0) { if (!defaultStream || defaultStream.getTracks().length === 0) {