소스 검색

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
  *

Loading…
취소
저장