Adds method to obtain remote video type.

pull/407/merge 750
damencho 10 years ago
parent 7ea675159e
commit b64f3a5913
  1. 9
      modules/UI/UI.js
  2. 9
      modules/UI/videolayout/VideoLayout.js

@ -700,6 +700,15 @@ UI.getLargeVideoResource = function () {
return VideoLayout.getLargeVideoResource();
};
/**
* Return the type of the remote video.
* @param jid the jid for the remote video
* @returns the video type video or screen.
*/
UI.getRemoteVideoType = function (jid) {
return VideoLayout.getRemoteVideoType(jid);
};
UI.getRoomNode = function () {
if (roomNode)
return roomNode;

@ -191,6 +191,15 @@ var VideoLayout = (function (my) {
return LargeVideo.getResourceJid();
};
/**
* Return the type of the remote video.
* @param jid the jid for the remote video
* @returns the video type video or screen.
*/
my.getRemoteVideoType = function (jid) {
return remoteVideoTypes[jid];
};
/**
* Called when large video update is finished
* @param currentSmallVideo small video currently displayed on large video

Loading…
Cancel
Save