浏览代码

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.
j8
Jaya Allamsetty 4 年前
父节点
当前提交
696ec36c8c
共有 1 个文件被更改,包括 10 次插入0 次删除
  1. 10
    0
      modules/UI/UI.js

+ 10
- 0
modules/UI/UI.js 查看文件

@@ -597,6 +597,16 @@ UI.onUserFeaturesChanged = user => VideoLayout.onUserFeaturesChanged(user);
597 597
  */
598 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 611
  * Sets the remote control active status for a remote participant.
602 612
  *

正在加载...
取消
保存