瀏覽代碼

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

j8
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,7 +126,7 @@ function initCommands() {
126 126
         },
127 127
         'set-large-video-participant': participantId => {
128 128
             logger.debug('Set large video participant command received');
129
-            sendAnalytics(createApiEvent('largevideo.participant.changed'));
129
+            sendAnalytics(createApiEvent('largevideo.participant.set'));
130 130
             APP.store.dispatch(selectParticipantInLargeVideo(participantId));
131 131
         },
132 132
         'subject': subject => {

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

@@ -948,6 +948,18 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
948 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 964
      * Sets the video input device to the one with the label or id that is
953 965
      * passed.

Loading…
取消
儲存