|
@@ -142,6 +142,13 @@ JitsiConferenceEventManager.prototype.setupChatRoomListeners = function() {
|
142
|
142
|
});
|
143
|
143
|
});
|
144
|
144
|
|
|
145
|
+ chatRoom.addListener(XMPPEvents.RENEGOTIATION_FAILED, (e, session) => {
|
|
146
|
+ if (!session.isP2P) {
|
|
147
|
+ conference.eventEmitter.emit(JitsiConferenceEvents.CONFERENCE_FAILED,
|
|
148
|
+ JitsiConferenceErrors.OFFER_ANSWER_FAILED, e);
|
|
149
|
+ }
|
|
150
|
+ });
|
|
151
|
+
|
145
|
152
|
this.chatRoomForwarder.forward(XMPPEvents.ROOM_JOIN_ERROR,
|
146
|
153
|
JitsiConferenceEvents.CONFERENCE_FAILED,
|
147
|
154
|
JitsiConferenceErrors.CONNECTION_ERROR);
|
|
@@ -180,15 +187,6 @@ JitsiConferenceEventManager.prototype.setupChatRoomListeners = function() {
|
180
|
187
|
JitsiConferenceEvents.CONFERENCE_FAILED,
|
181
|
188
|
JitsiConferenceErrors.GRACEFUL_SHUTDOWN);
|
182
|
189
|
|
183
|
|
- chatRoom.addListener(XMPPEvents.JINGLE_FATAL_ERROR,
|
184
|
|
- (session, error) => {
|
185
|
|
- if (!session.isP2P) {
|
186
|
|
- conference.eventEmitter.emit(
|
187
|
|
- JitsiConferenceEvents.CONFERENCE_FAILED,
|
188
|
|
- JitsiConferenceErrors.JINGLE_FATAL_ERROR, error);
|
189
|
|
- }
|
190
|
|
- });
|
191
|
|
-
|
192
|
190
|
chatRoom.addListener(XMPPEvents.CONNECTION_ICE_FAILED,
|
193
|
191
|
jingleSession => {
|
194
|
192
|
conference._onIceConnectionFailed(jingleSession);
|
|
@@ -238,17 +236,6 @@ JitsiConferenceEventManager.prototype.setupChatRoomListeners = function() {
|
238
|
236
|
this.chatRoomForwarder.forward(XMPPEvents.PHONE_NUMBER_CHANGED,
|
239
|
237
|
JitsiConferenceEvents.PHONE_NUMBER_CHANGED);
|
240
|
238
|
|
241
|
|
- chatRoom.addListener(
|
242
|
|
- XMPPEvents.CONFERENCE_SETUP_FAILED,
|
243
|
|
- (jingleSession, error) => {
|
244
|
|
- if (!jingleSession.isP2P) {
|
245
|
|
- conference.eventEmitter.emit(
|
246
|
|
- JitsiConferenceEvents.CONFERENCE_FAILED,
|
247
|
|
- JitsiConferenceErrors.SETUP_FAILED,
|
248
|
|
- error);
|
249
|
|
- }
|
250
|
|
- });
|
251
|
|
-
|
252
|
239
|
chatRoom.setParticipantPropertyListener((node, from) => {
|
253
|
240
|
const participant = conference.getParticipantById(from);
|
254
|
241
|
|
|
@@ -503,21 +490,37 @@ JitsiConferenceEventManager.prototype.setupRTCListeners = function() {
|
503
|
490
|
rtc.addListener(RTCEvents.CREATE_ANSWER_FAILED,
|
504
|
491
|
(e, tpc) => {
|
505
|
492
|
conference.statistics.sendCreateAnswerFailed(e, tpc);
|
|
493
|
+ if (!tpc.isP2P) {
|
|
494
|
+ conference.eventEmitter.emit(JitsiConferenceEvents.CONFERENCE_FAILED,
|
|
495
|
+ JitsiConferenceErrors.OFFER_ANSWER_FAILED, e);
|
|
496
|
+ }
|
506
|
497
|
});
|
507
|
498
|
|
508
|
499
|
rtc.addListener(RTCEvents.CREATE_OFFER_FAILED,
|
509
|
500
|
(e, tpc) => {
|
510
|
501
|
conference.statistics.sendCreateOfferFailed(e, tpc);
|
|
502
|
+ if (!tpc.isP2P) {
|
|
503
|
+ conference.eventEmitter.emit(JitsiConferenceEvents.CONFERENCE_FAILED,
|
|
504
|
+ JitsiConferenceErrors.OFFER_ANSWER_FAILED, e);
|
|
505
|
+ }
|
511
|
506
|
});
|
512
|
507
|
|
513
|
508
|
rtc.addListener(RTCEvents.SET_LOCAL_DESCRIPTION_FAILED,
|
514
|
509
|
(e, tpc) => {
|
515
|
510
|
conference.statistics.sendSetLocalDescFailed(e, tpc);
|
|
511
|
+ if (!tpc.isP2P) {
|
|
512
|
+ conference.eventEmitter.emit(JitsiConferenceEvents.CONFERENCE_FAILED,
|
|
513
|
+ JitsiConferenceErrors.OFFER_ANSWER_FAILED, e);
|
|
514
|
+ }
|
516
|
515
|
});
|
517
|
516
|
|
518
|
517
|
rtc.addListener(RTCEvents.SET_REMOTE_DESCRIPTION_FAILED,
|
519
|
518
|
(e, tpc) => {
|
520
|
519
|
conference.statistics.sendSetRemoteDescFailed(e, tpc);
|
|
520
|
+ if (!tpc.isP2P) {
|
|
521
|
+ conference.eventEmitter.emit(JitsiConferenceEvents.CONFERENCE_FAILED,
|
|
522
|
+ JitsiConferenceErrors.OFFER_ANSWER_FAILED, e);
|
|
523
|
+ }
|
521
|
524
|
});
|
522
|
525
|
|
523
|
526
|
rtc.addListener(RTCEvents.LOCAL_TRACK_SSRC_UPDATED,
|