|
@@ -358,6 +358,19 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
|
358
|
358
|
);
|
359
|
359
|
}
|
360
|
360
|
|
|
361
|
+ /**
|
|
362
|
+ * Returns the formatted display name of a participant.
|
|
363
|
+ *
|
|
364
|
+ * @param {string} participantId - The id of the participant.
|
|
365
|
+ * @returns {string} The formatted display name.
|
|
366
|
+ */
|
|
367
|
+ _getFormattedDisplayName(participantId) {
|
|
368
|
+ const { formattedDisplayName }
|
|
369
|
+ = this._participants[participantId] || {};
|
|
370
|
+
|
|
371
|
+ return formattedDisplayName;
|
|
372
|
+ }
|
|
373
|
+
|
361
|
374
|
/**
|
362
|
375
|
* Returns the id of the on stage participant.
|
363
|
376
|
*
|
|
@@ -702,6 +715,23 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
|
702
|
715
|
return getCurrentDevices(this._transport);
|
703
|
716
|
}
|
704
|
717
|
|
|
718
|
+ /**
|
|
719
|
+ * Returns the conference participants information.
|
|
720
|
+ *
|
|
721
|
+ * @returns {Array<Object>} - Returns an array containing participants
|
|
722
|
+ * information like participant id, display name, avatar URL and email.
|
|
723
|
+ */
|
|
724
|
+ getParticipantsInfo() {
|
|
725
|
+ const participantIds = Object.keys(this._participants);
|
|
726
|
+ const participantsInfo = Object.values(this._participants);
|
|
727
|
+
|
|
728
|
+ participantsInfo.forEach((participant, idx) => {
|
|
729
|
+ participant.participantId = participantIds[idx];
|
|
730
|
+ });
|
|
731
|
+
|
|
732
|
+ return participantsInfo;
|
|
733
|
+ }
|
|
734
|
+
|
705
|
735
|
/**
|
706
|
736
|
* Returns the current video quality setting.
|
707
|
737
|
*
|
|
@@ -831,19 +861,6 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
|
831
|
861
|
return email;
|
832
|
862
|
}
|
833
|
863
|
|
834
|
|
- /**
|
835
|
|
- * Returns the formatted display name of a participant.
|
836
|
|
- *
|
837
|
|
- * @param {string} participantId - The id of the participant.
|
838
|
|
- * @returns {string} The formatted display name.
|
839
|
|
- */
|
840
|
|
- _getFormattedDisplayName(participantId) {
|
841
|
|
- const { formattedDisplayName }
|
842
|
|
- = this._participants[participantId] || {};
|
843
|
|
-
|
844
|
|
- return formattedDisplayName;
|
845
|
|
- }
|
846
|
|
-
|
847
|
864
|
/**
|
848
|
865
|
* Returns the iframe that loads Jitsi Meet.
|
849
|
866
|
*
|