|
@@ -1,6 +1,7 @@
|
1
|
1
|
import { getLogger } from '@jitsi/logger';
|
2
|
2
|
|
3
|
3
|
import * as JitsiConferenceEvents from '../../JitsiConferenceEvents';
|
|
4
|
+import * as JitsiE2EPingEvents from '../../service/e2eping/E2ePingEvents';
|
4
|
5
|
|
5
|
6
|
const logger = getLogger(__filename);
|
6
|
7
|
|
|
@@ -160,6 +161,9 @@ class ParticipantWrapper {
|
160
|
161
|
logger.info(`Measured RTT=${rtt} ms to ${this.id} (in ${this.participant.getProperty('region')})`);
|
161
|
162
|
this.stop();
|
162
|
163
|
|
|
164
|
+ this.e2eping.conference.eventEmitter.emit(
|
|
165
|
+ JitsiE2EPingEvents.E2E_RTT_CHANGED, this.participant, rtt);
|
|
166
|
+
|
163
|
167
|
return;
|
164
|
168
|
} else if (totalNumRequests > 2 * this.e2eping.numRequests) {
|
165
|
169
|
logger.info(`Stopping e2eping for ${this.id} because we sent ${totalNumRequests} with only `
|