|
@@ -1,8 +1,6 @@
|
1
|
1
|
import { getLogger } from '@jitsi/logger';
|
2
|
2
|
|
3
|
3
|
import JitsiConference from '../../JitsiConference';
|
4
|
|
-import * as JitsiConferenceErrors from '../../JitsiConferenceErrors';
|
5
|
|
-import * as JitsiConferenceEvents from '../../JitsiConferenceEvents';
|
6
|
4
|
|
7
|
5
|
const logger = getLogger('modules/connectivity/IceFailedHandling');
|
8
|
6
|
|
|
@@ -11,8 +9,7 @@ const logger = getLogger('modules/connectivity/IceFailedHandling');
|
11
|
9
|
*
|
12
|
10
|
* If ICE connection is not re-established within 2 secs after the internet comes back online, the client will initiate
|
13
|
11
|
* a session restart via 'session-terminate'. This results in Jicofo re-inviting the participant into the conference by
|
14
|
|
- * recreating the jvb media session so that there is minimla disruption to the user by default. However, if the
|
15
|
|
- * 'enableForcedReload' option is set in config.js, the conference will be forcefully reloaded.
|
|
12
|
+ * recreating the jvb media session so that there is minimla disruption to the user by default.
|
16
|
13
|
*/
|
17
|
14
|
export default class IceFailedHandling {
|
18
|
15
|
private _conference: JitsiConference;
|
|
@@ -38,19 +35,6 @@ export default class IceFailedHandling {
|
38
|
35
|
return;
|
39
|
36
|
}
|
40
|
37
|
|
41
|
|
- const { enableForcedReload } = this._conference.options.config;
|
42
|
|
-
|
43
|
|
- logger.info(`ICE failed, enableForcedReload: ${enableForcedReload}`);
|
44
|
|
-
|
45
|
|
- if (enableForcedReload) {
|
46
|
|
- logger.info('ICE failed, force reloading the conference');
|
47
|
|
- this._conference.eventEmitter.emit(
|
48
|
|
- JitsiConferenceEvents.CONFERENCE_FAILED,
|
49
|
|
- JitsiConferenceErrors.CONFERENCE_RESTARTED);
|
50
|
|
-
|
51
|
|
- return;
|
52
|
|
- }
|
53
|
|
-
|
54
|
38
|
const jvbConnection = this._conference.jvbJingleSession;
|
55
|
39
|
const jvbConnIceState = jvbConnection?.getIceConnectionState();
|
56
|
40
|
|