Skip to content

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

Moves some function calls in UI service

hristoterezove0645b41d3db
diff --git a/libs/app.bundle.js b/libs/app.bundle.js
index af1f9d1302..42923b218f 100644
--- a/libs/app.bundle.js
+++ b/libs/app.bundle.js
@@ -1337,8 +1337,7 @@ function registerListeners() {
function (endpointSimulcastLayers) {
VideoLayout.onSimulcastLayersChanging(endpointSimulcastLayers);
});
- VideoLayout.init(eventEmitter);
- AudioLevels.init();
+
APP.statistics.addAudioLevelListener(function(jid, audioLevel)
{
var resourceJid;
@@ -1512,7 +1511,8 @@ UI.start = function (init) {
// Set the defaults for prompt dialogs.
jQuery.prompt.setDefaults({persistent: false});
-
+ VideoLayout.init(eventEmitter);
+ AudioLevels.init();
NicknameHandler.init(eventEmitter);
registerListeners();
bindEvents();
diff --git a/modules/UI/UI.js b/modules/UI/UI.js
index 2fc47dd545..44910bb6cd 100644
--- a/modules/UI/UI.js
+++ b/modules/UI/UI.js
@@ -102,8 +102,7 @@ function registerListeners() {
function (endpointSimulcastLayers) {
VideoLayout.onSimulcastLayersChanging(endpointSimulcastLayers);
});
- VideoLayout.init(eventEmitter);
- AudioLevels.init();
+
APP.statistics.addAudioLevelListener(function(jid, audioLevel)
{
var resourceJid;
@@ -277,7 +276,8 @@ UI.start = function (init) {
// Set the defaults for prompt dialogs.
jQuery.prompt.setDefaults({persistent: false});
-
+ VideoLayout.init(eventEmitter);
+ AudioLevels.init();
NicknameHandler.init(eventEmitter);
registerListeners();
bindEvents();