添加隐藏通话按钮
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3m31s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3m31s
This commit is contained in:
parent
becfd187df
commit
6b0ab88c9e
@ -857,6 +857,9 @@ class WebRTCChat {
|
|||||||
try {
|
try {
|
||||||
// 显示等待连接提示
|
// 显示等待连接提示
|
||||||
this.showConnectionWaiting();
|
this.showConnectionWaiting();
|
||||||
|
|
||||||
|
// 立即隐藏开始通话按钮
|
||||||
|
this.startButton.style.display = 'none';
|
||||||
|
|
||||||
// 切换到通话中图标
|
// 切换到通话中图标
|
||||||
this.switchToCallingIcon();
|
this.switchToCallingIcon();
|
||||||
@ -903,6 +906,7 @@ class WebRTCChat {
|
|||||||
this.hideConnectionWaiting();
|
this.hideConnectionWaiting();
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
this.startButton.style.display = 'block';
|
||||||
// 如果出错,隐藏等待连接提示并恢复到默认图标
|
// 如果出错,隐藏等待连接提示并恢复到默认图标
|
||||||
this.hideConnectionWaiting();
|
this.hideConnectionWaiting();
|
||||||
this.switchToDefaultIcon();
|
this.switchToDefaultIcon();
|
||||||
@ -953,6 +957,8 @@ class WebRTCChat {
|
|||||||
console.log('通话已结束,5秒后刷新页面清除缓存...');
|
console.log('通话已结束,5秒后刷新页面清除缓存...');
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
|
this.startButton.style.display = 'block';
|
||||||
|
this.startButton.disabled = false;
|
||||||
}, 2000);
|
}, 2000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user