Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

ParticipantConnectionStatus.js 23KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633
  1. /* global __filename */
  2. import { getLogger } from 'jitsi-meet-logger';
  3. import * as JitsiConferenceEvents from '../../JitsiConferenceEvents';
  4. import * as JitsiTrackEvents from '../../JitsiTrackEvents';
  5. import * as MediaType from '../../service/RTC/MediaType';
  6. import RTCBrowserType from '../RTC/RTCBrowserType';
  7. import RTCEvents from '../../service/RTC/RTCEvents';
  8. import Statistics from '../statistics/statistics';
  9. const logger = getLogger(__filename);
  10. /**
  11. * Default value of 2000 milliseconds for
  12. * {@link ParticipantConnectionStatus.rtcMuteTimeout}.
  13. *
  14. * @type {number}
  15. */
  16. const DEFAULT_RTC_MUTE_TIMEOUT = 2000;
  17. /**
  18. * The time to wait a track to be restored. Track which was out of lastN
  19. * should be inactive and when entering lastN it becomes restoring and when
  20. * data is received from bridge it will become active, but if no data is
  21. * received for some time we set status of that participant connection to
  22. * interrupted.
  23. * @type {number}
  24. */
  25. const DEFAULT_RESTORING_TIMEOUT = 5000;
  26. /**
  27. * Participant connection statuses.
  28. *
  29. * @type {{
  30. * ACTIVE: string,
  31. * INACTIVE: string,
  32. * INTERRUPTED: string,
  33. * RESTORING: string
  34. * }}
  35. */
  36. export const ParticipantConnectionStatus = {
  37. /**
  38. * Status indicating that connection is currently active.
  39. */
  40. ACTIVE: 'active',
  41. /**
  42. * Status indicating that connection is currently inactive.
  43. * Inactive means the connection was stopped on purpose from the bridge,
  44. * like exiting lastN or adaptivity decided to drop video because of not
  45. * enough bandwidth.
  46. */
  47. INACTIVE: 'inactive',
  48. /**
  49. * Status indicating that connection is currently interrupted.
  50. */
  51. INTERRUPTED: 'interrupted',
  52. /**
  53. * Status indicating that connection is currently restoring.
  54. */
  55. RESTORING: 'restoring'
  56. };
  57. /**
  58. * Class is responsible for emitting
  59. * JitsiConferenceEvents.PARTICIPANT_CONN_STATUS_CHANGED events.
  60. */
  61. export default class ParticipantConnectionStatusHandler {
  62. /**
  63. * Creates new instance of <tt>ParticipantConnectionStatus</tt>.
  64. *
  65. * @constructor
  66. * @param {RTC} rtc the RTC service instance
  67. * @param {JitsiConference} conference parent conference instance
  68. * @param {number} rtcMuteTimeout (optional) custom value for
  69. * {@link ParticipantConnectionStatus.rtcMuteTimeout}.
  70. */
  71. constructor(rtc, conference, rtcMuteTimeout) {
  72. this.rtc = rtc;
  73. this.conference = conference;
  74. /**
  75. * A map of the "endpoint ID"(which corresponds to the resource part
  76. * of MUC JID(nickname)) to the timeout callback IDs scheduled using
  77. * window.setTimeout.
  78. * @type {Object.<string, number>}
  79. */
  80. this.trackTimers = {};
  81. /**
  82. * This map holds the endpoint connection status received from the JVB
  83. * (as it might be different than the one stored in JitsiParticipant).
  84. * Required for getting back in sync when remote video track is removed.
  85. * @type {Object.<string, boolean>}
  86. */
  87. this.connStatusFromJvb = { };
  88. /**
  89. * How long we're going to wait after the RTC video track muted event
  90. * for the corresponding signalling mute event, before the connection
  91. * interrupted is fired. The default value is
  92. * {@link DEFAULT_RTC_MUTE_TIMEOUT}.
  93. *
  94. * @type {number} amount of time in milliseconds
  95. */
  96. this.rtcMuteTimeout
  97. = typeof rtcMuteTimeout === 'number'
  98. ? rtcMuteTimeout : DEFAULT_RTC_MUTE_TIMEOUT;
  99. /**
  100. * This map holds a timestamp indicating when participant's video track
  101. * was RTC muted (it is assumed that each participant can have only 1
  102. * video track at a time). The purpose of storing the timestamp is to
  103. * avoid the transition to disconnected status in case of legitimate
  104. * video mute operation where the signalling video muted event can
  105. * arrive shortly after RTC muted event.
  106. *
  107. * The key is participant's ID which is the same as endpoint id in
  108. * the Colibri conference allocated on the JVB.
  109. *
  110. * The value is a timestamp measured in milliseconds obtained with
  111. * <tt>Date.now()</tt>.
  112. *
  113. * FIXME merge this logic with NO_DATA_FROM_SOURCE event
  114. * implemented in JitsiLocalTrack by extending the event to
  115. * the remote track and allowing to set different timeout for
  116. * local and remote tracks.
  117. *
  118. * @type {Object.<string, number>}
  119. */
  120. this.rtcMutedTimestamp = { };
  121. logger.info(`RtcMuteTimeout set to: ${this.rtcMuteTimeout}`);
  122. /**
  123. * This map holds the timestamps indicating when participant's video
  124. * entered lastN set. Participants entering lastN will have connection
  125. * status restoring and when we start receiving video will become
  126. * active, but if video is not received for certain time
  127. * {@link DEFAULT_RESTORING_TIMEOUT} that participant connection status
  128. * will become interrupted.
  129. *
  130. * @type {Map<string, number>}
  131. */
  132. this.enteredLastNTimestamp = new Map();
  133. /**
  134. * A map of the "endpoint ID"(which corresponds to the resource part
  135. * of MUC JID(nickname)) to the restoring timeout callback IDs
  136. * scheduled using window.setTimeout.
  137. *
  138. * @type {Map<string, number>}
  139. */
  140. this.restoringTimers = new Map();
  141. }
  142. /**
  143. * Initializes <tt>ParticipantConnectionStatus</tt> and bind required event
  144. * listeners.
  145. */
  146. init() {
  147. this._onEndpointConnStatusChanged
  148. = this.onEndpointConnStatusChanged.bind(this);
  149. this.rtc.addListener(
  150. RTCEvents.ENDPOINT_CONN_STATUS_CHANGED,
  151. this._onEndpointConnStatusChanged);
  152. // Handles P2P status changes
  153. this._onP2PStatus = this.refreshConnectionStatusForAll.bind(this);
  154. this.conference.on(JitsiConferenceEvents.P2P_STATUS, this._onP2PStatus);
  155. // On some browsers MediaStreamTrack trigger "onmute"/"onunmute"
  156. // events for video type tracks when they stop receiving data which is
  157. // often a sign that remote user is having connectivity issues
  158. if (RTCBrowserType.isVideoMuteOnConnInterruptedSupported()) {
  159. this._onTrackRtcMuted = this.onTrackRtcMuted.bind(this);
  160. this.rtc.addListener(
  161. RTCEvents.REMOTE_TRACK_MUTE, this._onTrackRtcMuted);
  162. this._onTrackRtcUnmuted = this.onTrackRtcUnmuted.bind(this);
  163. this.rtc.addListener(
  164. RTCEvents.REMOTE_TRACK_UNMUTE, this._onTrackRtcUnmuted);
  165. // Track added/removed listeners are used to bind "mute"/"unmute"
  166. // event handlers
  167. this._onRemoteTrackAdded = this.onRemoteTrackAdded.bind(this);
  168. this.conference.on(
  169. JitsiConferenceEvents.TRACK_ADDED,
  170. this._onRemoteTrackAdded);
  171. this._onRemoteTrackRemoved = this.onRemoteTrackRemoved.bind(this);
  172. this.conference.on(
  173. JitsiConferenceEvents.TRACK_REMOVED,
  174. this._onRemoteTrackRemoved);
  175. // Listened which will be bound to JitsiRemoteTrack to listen for
  176. // signalling mute/unmute events.
  177. this._onSignallingMuteChanged
  178. = this.onSignallingMuteChanged.bind(this);
  179. }
  180. this._onLastNChanged = this._onLastNChanged.bind(this);
  181. this.conference.on(
  182. JitsiConferenceEvents.LAST_N_ENDPOINTS_CHANGED,
  183. this._onLastNChanged);
  184. }
  185. /**
  186. * Removes all event listeners and disposes of all resources held by this
  187. * instance.
  188. */
  189. dispose() {
  190. this.rtc.removeListener(
  191. RTCEvents.ENDPOINT_CONN_STATUS_CHANGED,
  192. this._onEndpointConnStatusChanged);
  193. if (RTCBrowserType.isVideoMuteOnConnInterruptedSupported()) {
  194. this.rtc.removeListener(
  195. RTCEvents.REMOTE_TRACK_MUTE,
  196. this._onTrackRtcMuted);
  197. this.rtc.removeListener(
  198. RTCEvents.REMOTE_TRACK_UNMUTE,
  199. this._onTrackRtcUnmuted);
  200. this.conference.off(
  201. JitsiConferenceEvents.TRACK_ADDED,
  202. this._onRemoteTrackAdded);
  203. this.conference.off(
  204. JitsiConferenceEvents.TRACK_REMOVED,
  205. this._onRemoteTrackRemoved);
  206. }
  207. this.conference.off(
  208. JitsiConferenceEvents.LAST_N_ENDPOINTS_CHANGED,
  209. this._onLastNChanged);
  210. this.conference.off(
  211. JitsiConferenceEvents.P2P_STATUS, this._onP2PStatus);
  212. const participantIds = Object.keys(this.trackTimers);
  213. for (const participantId of participantIds) {
  214. this.clearTimeout(participantId);
  215. this.clearRtcMutedTimestamp(participantId);
  216. }
  217. // Clear RTC connection status cache
  218. this.connStatusFromJvb = {};
  219. }
  220. /**
  221. * Handles RTCEvents.ENDPOINT_CONN_STATUS_CHANGED triggered when we receive
  222. * notification over the data channel from the bridge about endpoint's
  223. * connection status update.
  224. * @param {string} endpointId the endpoint ID(MUC nickname/resource JID)
  225. * @param {boolean} isActive true if the connection is OK or false otherwise
  226. */
  227. onEndpointConnStatusChanged(endpointId, isActive) {
  228. logger.debug(
  229. `Detector RTCEvents.ENDPOINT_CONN_STATUS_CHANGED(${Date.now()}): ${
  230. endpointId}: ${isActive}`);
  231. // Filter out events for the local JID for now
  232. if (endpointId !== this.conference.myUserId()) {
  233. // Store the status received over the data channels
  234. this.connStatusFromJvb[endpointId] = isActive;
  235. this.figureOutConnectionStatus(endpointId);
  236. }
  237. }
  238. /**
  239. * Changes connection status.
  240. * @param {JitsiParticipant} participant
  241. * @param newStatus
  242. */
  243. _changeConnectionStatus(participant, newStatus) {
  244. if (participant.getConnectionStatus() !== newStatus) {
  245. const endpointId = participant.getId();
  246. participant._setConnectionStatus(newStatus);
  247. logger.debug(
  248. `Emit endpoint conn status(${Date.now()}) ${endpointId}: ${
  249. newStatus}`);
  250. // Log the event on CallStats
  251. Statistics.sendLog(
  252. JSON.stringify({
  253. id: 'peer.conn.status',
  254. participant: endpointId,
  255. status: newStatus
  256. }));
  257. // and analytics
  258. Statistics.analytics.sendEvent('peer.conn.status',
  259. { label: newStatus });
  260. this.conference.eventEmitter.emit(
  261. JitsiConferenceEvents.PARTICIPANT_CONN_STATUS_CHANGED,
  262. endpointId, newStatus);
  263. }
  264. }
  265. /**
  266. * Reset the postponed "connection interrupted" event which was previously
  267. * scheduled as a timeout on RTC 'onmute' event.
  268. *
  269. * @param {string} participantId the participant for which the "connection
  270. * interrupted" timeout was scheduled
  271. */
  272. clearTimeout(participantId) {
  273. if (this.trackTimers[participantId]) {
  274. window.clearTimeout(this.trackTimers[participantId]);
  275. this.trackTimers[participantId] = null;
  276. }
  277. }
  278. /**
  279. * Clears the timestamp of the RTC muted event for participant's video track
  280. * @param {string} participantId the id of the conference participant which
  281. * is the same as the Colibri endpoint ID of the video channel allocated for
  282. * the user on the videobridge.
  283. */
  284. clearRtcMutedTimestamp(participantId) {
  285. this.rtcMutedTimestamp[participantId] = null;
  286. }
  287. /**
  288. * Bind signalling mute event listeners for video {JitsiRemoteTrack} when
  289. * a new one is added to the conference.
  290. *
  291. * @param {JitsiTrack} remoteTrack the {JitsiTrack} which is being added to
  292. * the conference.
  293. */
  294. onRemoteTrackAdded(remoteTrack) {
  295. if (!remoteTrack.isLocal()
  296. && remoteTrack.getType() === MediaType.VIDEO) {
  297. logger.debug(
  298. `Detector on remote track added for: ${
  299. remoteTrack.getParticipantId()}`);
  300. remoteTrack.on(
  301. JitsiTrackEvents.TRACK_MUTE_CHANGED,
  302. this._onSignallingMuteChanged);
  303. }
  304. }
  305. /**
  306. * Removes all event listeners bound to the remote video track and clears
  307. * any related timeouts.
  308. *
  309. * @param {JitsiRemoteTrack} remoteTrack the remote track which is being
  310. * removed from the conference.
  311. */
  312. onRemoteTrackRemoved(remoteTrack) {
  313. if (!remoteTrack.isLocal()
  314. && remoteTrack.getType() === MediaType.VIDEO) {
  315. const endpointId = remoteTrack.getParticipantId();
  316. logger.debug(`Detector on remote track removed: ${endpointId}`);
  317. remoteTrack.off(
  318. JitsiTrackEvents.TRACK_MUTE_CHANGED,
  319. this._onSignallingMuteChanged);
  320. this.clearTimeout(endpointId);
  321. this.clearRtcMutedTimestamp(endpointId);
  322. this.figureOutConnectionStatus(endpointId);
  323. }
  324. }
  325. /**
  326. * Checks if given participant's video is considered frozen.
  327. * @param {JitsiParticipant} participant
  328. * @return {boolean} <tt>true</tt> if the video has frozen for given
  329. * participant or <tt>false</tt> when it's either not considered frozen
  330. * (yet) or if freeze detection is not supported by the current browser.
  331. *
  332. * FIXME merge this logic with NO_DATA_FROM_SOURCE event
  333. * implemented in JitsiLocalTrack by extending the event to
  334. * the remote track and allowing to set different timeout for
  335. * local and remote tracks.
  336. *
  337. */
  338. isVideoTrackFrozen(participant) {
  339. if (!RTCBrowserType.isVideoMuteOnConnInterruptedSupported()) {
  340. return false;
  341. }
  342. const hasAnyVideoRTCMuted = participant.hasAnyVideoTrackWebRTCMuted();
  343. const rtcMutedTimestamp
  344. = this.rtcMutedTimestamp[participant.getId()];
  345. return hasAnyVideoRTCMuted
  346. && typeof rtcMutedTimestamp === 'number'
  347. && (Date.now() - rtcMutedTimestamp) >= this.rtcMuteTimeout;
  348. }
  349. /**
  350. * Goes over every participant and updates connectivity status.
  351. * Should be called when a parameter which affects all of the participants
  352. * is changed (P2P for example).
  353. */
  354. refreshConnectionStatusForAll() {
  355. const participants = this.conference.getParticipants();
  356. for (const participant of participants) {
  357. this.figureOutConnectionStatus(participant.getId());
  358. }
  359. }
  360. /**
  361. * Figures out (and updates) the current connectivity status for
  362. * the participant identified by the given id.
  363. *
  364. * @param {string} id the participant's id (MUC nickname or Colibri endpoint
  365. * ID).
  366. */
  367. figureOutConnectionStatus(id) {
  368. const participant = this.conference.getParticipantById(id);
  369. if (!participant) {
  370. // Probably the participant is no longer in the conference
  371. // (at the time of writing this code, participant is
  372. // detached from the conference and TRACK_REMOVED events are
  373. // fired),
  374. // so we don't care, but let's print the warning for
  375. // debugging purpose
  376. logger.warn(`figure out conn status - no participant for: ${id}`);
  377. return;
  378. }
  379. const isVideoMuted = participant.isVideoMuted();
  380. const isVideoTrackFrozen = this.isVideoTrackFrozen(participant);
  381. const isInLastN = this.rtc.isInLastN(id);
  382. let isConnActiveByJvb = this.connStatusFromJvb[id];
  383. if (this.conference.isP2PActive()) {
  384. logger.debug('Assuming connection active by JVB - in P2P mode');
  385. isConnActiveByJvb = true;
  386. } else if (typeof isConnActiveByJvb !== 'boolean') {
  387. // If no status was received from the JVB it means that it's active
  388. // (the bridge does not send notification unless there is a problem)
  389. logger.debug('Assuming connection active by JVB - no notification');
  390. isConnActiveByJvb = true;
  391. }
  392. let newState = ParticipantConnectionStatus.INACTIVE;
  393. if (isConnActiveByJvb) {
  394. if (isInLastN) {
  395. if (isVideoTrackFrozen) {
  396. newState = this._isRestoringTimedout(id)
  397. ? ParticipantConnectionStatus.INTERRUPTED
  398. : ParticipantConnectionStatus.RESTORING;
  399. } else {
  400. newState = ParticipantConnectionStatus.ACTIVE;
  401. }
  402. }
  403. } else {
  404. // when there is a connection problem signaled from jvb
  405. // it means no media was flowing for at least 15secs, so everything
  406. // should be interrupted, when in p2p mode we will never end up here
  407. newState = ParticipantConnectionStatus.INTERRUPTED;
  408. }
  409. // if the new state is not restoring clear timers and timestamps
  410. // that we use to track the restoring state
  411. if (newState !== ParticipantConnectionStatus.RESTORING) {
  412. this._clearRestoringTimer(id);
  413. }
  414. logger.debug(
  415. `Figure out conn status for ${id}, is video muted: ${isVideoMuted
  416. } is active(jvb): ${isConnActiveByJvb
  417. } video track frozen: ${isVideoTrackFrozen
  418. } is in last N: ${isInLastN
  419. } currentStatus => newStatus:
  420. ${participant.getConnectionStatus()} => ${newState}`);
  421. this._changeConnectionStatus(participant, newState);
  422. }
  423. /**
  424. * On change in Last N set check all leaving and entering participants to
  425. * change their corresponding statuses.
  426. *
  427. * @param {Array<string>} leavingLastN array of ids leaving lastN.
  428. * @param {Array<string>} enteringLastN array of ids entering lastN.
  429. * @private
  430. */
  431. _onLastNChanged(leavingLastN = [], enteringLastN = []) {
  432. for (const id of leavingLastN) {
  433. this.enteredLastNTimestamp.delete(id);
  434. this._clearRestoringTimer(id);
  435. this.figureOutConnectionStatus(id);
  436. }
  437. for (const id of enteringLastN) {
  438. // store the timestamp this id is entering lastN
  439. this.enteredLastNTimestamp.set(id, Date.now());
  440. this.figureOutConnectionStatus(id);
  441. }
  442. }
  443. /**
  444. * Clears the restoring timer for participant's video track and the
  445. * timestamp for entering lastN.
  446. *
  447. * @param {string} participantId the id of the conference participant which
  448. * is the same as the Colibri endpoint ID of the video channel allocated for
  449. * the user on the videobridge.
  450. */
  451. _clearRestoringTimer(participantId) {
  452. const rTimer = this.restoringTimers.get(participantId);
  453. if (rTimer) {
  454. clearTimeout(rTimer);
  455. this.restoringTimers.delete(participantId);
  456. }
  457. }
  458. /**
  459. * Checks whether a track had stayed enough in restoring state, compares
  460. * current time and the time the track entered in lastN. If it hasn't
  461. * timedout and there is no timer added, add new timer in order to give it
  462. * more time to become active or mark it as interrupted on next check.
  463. *
  464. * @param {string} participantId the id of the conference participant which
  465. * is the same as the Colibri endpoint ID of the video channel allocated for
  466. * the user on the videobridge.
  467. * @returns {boolean} <tt>true</tt> if the track was in restoring state
  468. * more than the timeout ({@link DEFAULT_RESTORING_TIMEOUT}.) in order to
  469. * set its status to interrupted.
  470. * @private
  471. */
  472. _isRestoringTimedout(participantId) {
  473. const enteredLastNTimestamp
  474. = this.enteredLastNTimestamp.get(participantId);
  475. if (enteredLastNTimestamp
  476. && (Date.now() - enteredLastNTimestamp)
  477. >= DEFAULT_RESTORING_TIMEOUT) {
  478. return true;
  479. }
  480. // still haven't reached timeout, if there is no timer scheduled,
  481. // schedule one so we can track the restoring state and change it after
  482. // reaching the timeout
  483. const rTimer = this.restoringTimers.get(participantId);
  484. if (!rTimer) {
  485. this.restoringTimers.set(participantId, setTimeout(
  486. () => this.figureOutConnectionStatus(participantId),
  487. DEFAULT_RESTORING_TIMEOUT));
  488. }
  489. return false;
  490. }
  491. /**
  492. * Handles RTC 'onmute' event for the video track.
  493. *
  494. * @param {JitsiRemoteTrack} track the video track for which 'onmute' event
  495. * will be processed.
  496. */
  497. onTrackRtcMuted(track) {
  498. const participantId = track.getParticipantId();
  499. const participant = this.conference.getParticipantById(participantId);
  500. logger.debug(`Detector track RTC muted: ${participantId}`);
  501. if (!participant) {
  502. logger.error(`No participant for id: ${participantId}`);
  503. return;
  504. }
  505. this.rtcMutedTimestamp[participantId] = Date.now();
  506. if (!participant.isVideoMuted()) {
  507. // If the user is not muted according to the signalling we'll give
  508. // it some time, before the connection interrupted event is
  509. // triggered.
  510. this.clearTimeout(participantId);
  511. this.trackTimers[participantId] = window.setTimeout(() => {
  512. logger.debug(`RTC mute timeout for: ${participantId}`);
  513. this.clearTimeout(participantId);
  514. this.figureOutConnectionStatus(participantId);
  515. }, this.rtcMuteTimeout);
  516. }
  517. }
  518. /**
  519. * Handles RTC 'onunmute' event for the video track.
  520. *
  521. * @param {JitsiRemoteTrack} track the video track for which 'onunmute'
  522. * event will be processed.
  523. */
  524. onTrackRtcUnmuted(track) {
  525. const participantId = track.getParticipantId();
  526. logger.debug(`Detector track RTC unmuted: ${participantId}`);
  527. this.clearTimeout(participantId);
  528. this.clearRtcMutedTimestamp(participantId);
  529. this.figureOutConnectionStatus(participantId);
  530. }
  531. /**
  532. * Here the signalling "mute"/"unmute" events are processed.
  533. *
  534. * @param {JitsiRemoteTrack} track the remote video track for which
  535. * the signalling mute/unmute event will be processed.
  536. */
  537. onSignallingMuteChanged(track) {
  538. const participantId = track.getParticipantId();
  539. logger.debug(
  540. `Detector on track signalling mute changed: ${participantId}`,
  541. track.isMuted());
  542. this.figureOutConnectionStatus(participantId);
  543. }
  544. }