延长等待流时间
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2m54s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2m54s
This commit is contained in:
parent
b026ee1664
commit
a73165a6a1
@ -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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user