소스 검색

fix(ICE) remove force reload option on ICE failures.

Restarting media session when ICE fails has been working well for some time now.
master
Jaya Allamsetty 4 달 전
부모
커밋
6de3a8fff5

+ 0
- 2
JitsiConferenceErrors.spec.ts 파일 보기

@@ -42,7 +42,6 @@ describe( "/JitsiConferenceErrors members", () => {
42 42
         expect( CONFERENCE_DESTROYED ).toBe( 'conference.destroyed' );
43 43
         expect( CONFERENCE_MAX_USERS ).toBe( 'conference.max_users' );
44 44
         expect( CONNECTION_ERROR ).toBe( 'conference.connectionError' );
45
-        expect( CONFERENCE_RESTARTED ).toBe( 'conference.restarted' );
46 45
         expect( DISPLAY_NAME_REQUIRED ).toBe( 'conference.display_name_required' );
47 46
         expect( NOT_ALLOWED_ERROR ).toBe( 'conference.connectionError.notAllowed' );
48 47
         expect( MEMBERS_ONLY_ERROR ).toBe( 'conference.connectionError.membersOnly' );
@@ -66,7 +65,6 @@ describe( "/JitsiConferenceErrors members", () => {
66 65
         expect( JitsiConferenceErrors.CONFERENCE_DESTROYED ).toBe( 'conference.destroyed' );
67 66
         expect( JitsiConferenceErrors.CONFERENCE_MAX_USERS ).toBe( 'conference.max_users' );
68 67
         expect( JitsiConferenceErrors.CONNECTION_ERROR ).toBe( 'conference.connectionError' );
69
-        expect( JitsiConferenceErrors.CONFERENCE_RESTARTED ).toBe( 'conference.restarted' );
70 68
         expect( JitsiConferenceErrors.DISPLAY_NAME_REQUIRED ).toBe( 'conference.display_name_required' );
71 69
         expect( JitsiConferenceErrors.NOT_ALLOWED_ERROR ).toBe( 'conference.connectionError.notAllowed' );
72 70
         expect( JitsiConferenceErrors.MEMBERS_ONLY_ERROR ).toBe( 'conference.connectionError.membersOnly' );

+ 0
- 7
JitsiConferenceErrors.ts 파일 보기

@@ -30,12 +30,6 @@ export enum JitsiConferenceErrors {
30 30
      */
31 31
     CONFERENCE_MAX_USERS = 'conference.max_users',
32 32
 
33
-    /**
34
-     * Indicates that the client has been forced to restart by jicofo when the
35
-     * conference was migrated from one bridge to another.
36
-     */
37
-    CONFERENCE_RESTARTED = 'conference.restarted',
38
-
39 33
     /**
40 34
      * Indicates that a connection error occurred when trying to join a conference.
41 35
      */
@@ -135,7 +129,6 @@ export const SETTINGS_ERROR = JitsiConferenceErrors.SETTINGS_ERROR;
135 129
 export const CONFERENCE_DESTROYED = JitsiConferenceErrors.CONFERENCE_DESTROYED;
136 130
 export const CONFERENCE_MAX_USERS = JitsiConferenceErrors.CONFERENCE_MAX_USERS;
137 131
 export const CONNECTION_ERROR = JitsiConferenceErrors.CONNECTION_ERROR;
138
-export const CONFERENCE_RESTARTED = JitsiConferenceErrors.CONFERENCE_RESTARTED;
139 132
 export const NOT_ALLOWED_ERROR = JitsiConferenceErrors.NOT_ALLOWED_ERROR;
140 133
 export const MEMBERS_ONLY_ERROR = JitsiConferenceErrors.MEMBERS_ONLY_ERROR;
141 134
 export const CONFERENCE_ACCESS_DENIED = JitsiConferenceErrors.CONFERENCE_ACCESS_DENIED;

+ 0
- 17
modules/connectivity/IceFailedHandling.spec.js 파일 보기

@@ -89,21 +89,4 @@ describe('IceFailedHandling', () => {
89 89
                 });
90 90
         });
91 91
     });
92
-    describe('when forced reloads are enabled', () => {
93
-        beforeEach(() => {
94
-            mockConference.options.config.enableForcedReload = true;
95
-
96
-            mockConference.room = {};
97
-        });
98
-
99
-        it('emits conference restarted when force reloads are enabled', () => {
100
-            iceFailedHandling.start();
101
-
102
-            return nextTick() // tick for ping
103
-                .then(() => nextTick(2500)) // tick for ice timeout
104
-                .then(() => {
105
-                    expect(emitEventSpy).toHaveBeenCalled();
106
-                });
107
-        });
108
-    });
109 92
 });

+ 1
- 17
modules/connectivity/IceFailedHandling.ts 파일 보기

@@ -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
 

+ 0
- 1
types/hand-crafted/JitsiConferenceErrors.d.ts 파일 보기

@@ -4,7 +4,6 @@ export enum JitsiConferenceErrors {
4 4
   CONFERENCE_DESTROYED = 'conference.destroyed',
5 5
   CONFERENCE_MAX_USERS = 'conference.max_users',
6 6
   CONNECTION_ERROR = 'conference.connectionError',
7
-  CONFERENCE_RESTARTED = 'conference.restarted',
8 7
   NOT_ALLOWED_ERROR = 'conference.connectionError.notAllowed',
9 8
   MEMBERS_ONLY_ERROR = 'conference.connectionError.membersOnly',
10 9
   CONFERENCE_ACCESS_DENIED = 'conference.connectionError.accessDenied',

Loading…
취소
저장