Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(UI): Add method for returning the video type of remote participants. This is needed for the torture clients to determine the video type for the remote participants when testing desktop share.

Jaya Allamsetty696ec36c8cc0
diff --git a/modules/UI/UI.js b/modules/UI/UI.js
index 94f7bb80ac..fa4021287b 100644
--- a/modules/UI/UI.js
+++ b/modules/UI/UI.js
@@ -597,6 +597,16 @@ UI.onUserFeaturesChanged = user => VideoLayout.onUserFeaturesChanged(user);
*/
UI.getRemoteVideosCount = () => VideoLayout.getRemoteVideosCount();
+/**
+ * Returns the video type of the remote participant's video.
+ * This is needed for the torture clients to determine the video type of the
+ * remote participants.
+ *
+ * @param {string} participantID - The id of the remote participant.
+ * @returns {string} The video type "camera" or "desktop".
+ */
+UI.getRemoteVideoType = participantID => VideoLayout.getRemoteVideoType(participantID);
+
/**
* Sets the remote control active status for a remote participant.
*