Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Adds helper function to obtain large video id from tests.

damenchoa6a6d2992eef
diff --git a/modules/UI/UI.js b/modules/UI/UI.js
index 0ca3b0d606..32fa5eae2d 100644
--- a/modules/UI/UI.js
+++ b/modules/UI/UI.js
@@ -790,4 +790,12 @@ UI.onStartMutedChanged = function () {
SettingsMenu.onStartMutedChanged();
};
+/**
+ * Returns the id of the current video shown on large.
+ * Currently used by tests (troture).
+ */
+UI.getLargeVideoID = function () {
+ return VideoLayout.getLargeVideoID();
+};
+
module.exports = UI;
diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js
index 241af183ba..018c6cc8ef 100644
--- a/modules/UI/videolayout/VideoLayout.js
+++ b/modules/UI/videolayout/VideoLayout.js
@@ -1027,6 +1027,14 @@ var VideoLayout = {
isLargeContainerTypeVisible (type) {
return largeVideo && largeVideo.state === type;
+ },
+
+ /**
+ * Returns the id of the current video shown on large.
+ * Currently used by tests (troture).
+ */
+ getLargeVideoID () {
+ return largeVideo.id;
}
};