【m】修改各个网络图标状态
This commit is contained in:
@@ -386,8 +386,8 @@ class CallStateManager {
|
||||
const qualities = ['good', 'fair', 'excellent', 'poor'];
|
||||
setInterval(() => {
|
||||
if (Math.random() > 0.8) {
|
||||
const networkQuality = qualities[Math.floor(Math.random() * qualities.length)];
|
||||
this.state.session.remoteUser.networkQuality = networkQuality;
|
||||
const quality = qualities[Math.floor(Math.random() * qualities.length)];
|
||||
this.state.session.remoteUser.networkQuality = quality;
|
||||
this.notify({ type: 'NETWORK_CHANGE', quality });
|
||||
}
|
||||
}, 5000);
|
||||
|
||||
Reference in New Issue
Block a user