Browse Source

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.
master
Jaya Allamsetty 4 years ago
parent
commit
696ec36c8c
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      modules/UI/UI.js

+ 10
- 0
modules/UI/UI.js View File

597
  */
597
  */
598
 UI.getRemoteVideosCount = () => VideoLayout.getRemoteVideosCount();
598
 UI.getRemoteVideosCount = () => VideoLayout.getRemoteVideosCount();
599
 
599
 
600
+/**
601
+ * Returns the video type of the remote participant's video.
602
+ * This is needed for the torture clients to determine the video type of the
603
+ * remote participants.
604
+ *
605
+ * @param {string} participantID - The id of the remote participant.
606
+ * @returns {string} The video type "camera" or "desktop".
607
+ */
608
+UI.getRemoteVideoType = participantID => VideoLayout.getRemoteVideoType(participantID);
609
+
600
 /**
610
 /**
601
  * Sets the remote control active status for a remote participant.
611
  * Sets the remote control active status for a remote participant.
602
  *
612
  *

Loading…
Cancel
Save