瀏覽代碼

Adds method to obtain remote video type.

j8
damencho 9 年之前
父節點
當前提交
b64f3a5913
共有 2 個檔案被更改,包括 18 行新增0 行删除
  1. 9
    0
      modules/UI/UI.js
  2. 9
    0
      modules/UI/videolayout/VideoLayout.js

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

700
     return VideoLayout.getLargeVideoResource();
700
     return VideoLayout.getLargeVideoResource();
701
 };
701
 };
702
 
702
 
703
+/**
704
+ * Return the type of the remote video.
705
+ * @param jid the jid for the remote video
706
+ * @returns the video type video or screen.
707
+ */
708
+UI.getRemoteVideoType = function (jid) {
709
+    return VideoLayout.getRemoteVideoType(jid);
710
+};
711
+
703
 UI.getRoomNode = function () {
712
 UI.getRoomNode = function () {
704
     if (roomNode)
713
     if (roomNode)
705
         return roomNode;
714
         return roomNode;

+ 9
- 0
modules/UI/videolayout/VideoLayout.js 查看文件

191
         return LargeVideo.getResourceJid();
191
         return LargeVideo.getResourceJid();
192
     };
192
     };
193
 
193
 
194
+    /**
195
+     * Return the type of the remote video.
196
+     * @param jid the jid for the remote video
197
+     * @returns the video type video or screen.
198
+     */
199
+    my.getRemoteVideoType = function (jid) {
200
+        return remoteVideoTypes[jid];
201
+    };
202
+
194
     /**
203
     /**
195
      * Called when large video update is finished
204
      * Called when large video update is finished
196
      * @param currentSmallVideo small video currently displayed on large video
205
      * @param currentSmallVideo small video currently displayed on large video

Loading…
取消
儲存