浏览代码

feat(external_api): Add method for displaying participant on large video

master
Jaya Allamsetty 4 年前
父节点
当前提交
4d1dba937f
共有 2 个文件被更改,包括 13 次插入1 次删除
  1. 1
    1
      modules/API/API.js
  2. 12
    0
      modules/API/external/external_api.js

+ 1
- 1
modules/API/API.js 查看文件

126
         },
126
         },
127
         'set-large-video-participant': participantId => {
127
         'set-large-video-participant': participantId => {
128
             logger.debug('Set large video participant command received');
128
             logger.debug('Set large video participant command received');
129
-            sendAnalytics(createApiEvent('largevideo.participant.changed'));
129
+            sendAnalytics(createApiEvent('largevideo.participant.set'));
130
             APP.store.dispatch(selectParticipantInLargeVideo(participantId));
130
             APP.store.dispatch(selectParticipantInLargeVideo(participantId));
131
         },
131
         },
132
         'subject': subject => {
132
         'subject': subject => {

+ 12
- 0
modules/API/external/external_api.js 查看文件

948
         return setAudioOutputDevice(this._transport, label, deviceId);
948
         return setAudioOutputDevice(this._transport, label, deviceId);
949
     }
949
     }
950
 
950
 
951
+    /**
952
+     * Displays the given participant on the large video. If no participant id is specified,
953
+     * dominant and pinned speakers will be taken into consideration while selecting the
954
+     * the large video participant.
955
+     *
956
+     * @param {string} participantId - Jid of the participant to be displayed on the large video.
957
+     * @returns {void}
958
+     */
959
+    setLargeVideoParticipant(participantId) {
960
+        this.executeCommand('setLargeVideoParticipant', participantId);
961
+    }
962
+
951
     /**
963
     /**
952
      * Sets the video input device to the one with the label or id that is
964
      * Sets the video input device to the one with the label or id that is
953
      * passed.
965
      * passed.

正在加载...
取消
保存