Adds method to obtain remote video type.

This commit is contained in:
damencho 2015-11-16 17:42:21 -06:00
parent 7ea675159e
commit b64f3a5913
2 changed files with 18 additions and 0 deletions

View File

@ -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;

View File

@ -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