|
@@ -25,6 +25,11 @@ const TrackErrors = JitsiMeetJS.errors.track;
|
25
|
25
|
|
26
|
26
|
let room, connection, localAudio, localVideo, roomLocker;
|
27
|
27
|
|
|
28
|
+/**
|
|
29
|
+ * Indicates whether the connection is interrupted or not.
|
|
30
|
+ */
|
|
31
|
+let connectionIsInterrupted = false;
|
|
32
|
+
|
28
|
33
|
import {VIDEO_CONTAINER_TYPE} from "./modules/UI/videolayout/LargeVideo";
|
29
|
34
|
|
30
|
35
|
/**
|
|
@@ -1076,6 +1081,15 @@ export default {
|
1076
|
1081
|
});
|
1077
|
1082
|
}
|
1078
|
1083
|
|
|
1084
|
+ room.on(ConferenceEvents.CONNECTION_INTERRUPTED, () => {
|
|
1085
|
+ connectionIsInterrupted = true;
|
|
1086
|
+ ConnectionQuality.updateLocalConnectionQuality(0);
|
|
1087
|
+ });
|
|
1088
|
+
|
|
1089
|
+ room.on(ConferenceEvents.CONNECTION_RESTORED, () => {
|
|
1090
|
+ connectionIsInterrupted = false;
|
|
1091
|
+ });
|
|
1092
|
+
|
1079
|
1093
|
room.on(ConferenceEvents.DISPLAY_NAME_CHANGED, (id, displayName) => {
|
1080
|
1094
|
APP.API.notifyDisplayNameChanged(id, displayName);
|
1081
|
1095
|
APP.UI.changeDisplayName(id, displayName);
|
|
@@ -1131,7 +1145,7 @@ export default {
|
1131
|
1145
|
}
|
1132
|
1146
|
|
1133
|
1147
|
room.on(ConferenceEvents.CONNECTION_STATS, function (stats) {
|
1134
|
|
- ConnectionQuality.updateLocalStats(stats);
|
|
1148
|
+ ConnectionQuality.updateLocalStats(stats, connectionIsInterrupted);
|
1135
|
1149
|
});
|
1136
|
1150
|
|
1137
|
1151
|
ConnectionQuality.addListener(CQEvents.LOCALSTATS_UPDATED,
|