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.
This commit is contained in:
Jaya Allamsetty 2020-11-17 12:28:44 -05:00 committed by Дамян Минков
parent 76c9d96361
commit 696ec36c8c
1 changed files with 10 additions and 0 deletions

View File

@ -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.
*