Selaa lähdekoodia

Adds method to obtain remote video type.

j8
damencho 9 vuotta sitten
vanhempi
commit
b64f3a5913
2 muutettua tiedostoa jossa 18 lisäystä ja 0 poistoa
  1. 9
    0
      modules/UI/UI.js
  2. 9
    0
      modules/UI/videolayout/VideoLayout.js

+ 9
- 0
modules/UI/UI.js Näytä tiedosto

@@ -700,6 +700,15 @@ UI.getLargeVideoResource = function () {
700 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 712
 UI.getRoomNode = function () {
704 713
     if (roomNode)
705 714
         return roomNode;

+ 9
- 0
modules/UI/videolayout/VideoLayout.js Näytä tiedosto

@@ -191,6 +191,15 @@ var VideoLayout = (function (my) {
191 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 204
      * Called when large video update is finished
196 205
      * @param currentSmallVideo small video currently displayed on large video

Loading…
Peruuta
Tallenna