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 helpers to access audio levels from torture.

damencho482f71f5ea5a
diff --git a/conference.js b/conference.js
index 39280a11a0..3cf2e78341 100644
--- a/conference.js
+++ b/conference.js
@@ -244,6 +244,14 @@ export default {
return this._room
&& this._room.myUserId();
},
+ /**
+ * Will be filled with values only when config.debug is enabled.
+ * Its used by torture to check audio levels.
+ */
+ audioLevelsMap: {},
+ getPeerSSRCAudioLevel (id) {
+ return this.audioLevelsMap[id];
+ },
/**
* Will check for number of remote particiapnts that have at least one
* remote track.
@@ -292,10 +300,7 @@ export default {
this._setupListeners();
},
_getConferenceOptions() {
- let options = {
- openSctp: config.openSctp,
- disableAudioLevels: config.disableAudioLevels
- };
+ let options = config;
if(config.enableRecording) {
options.recordingType = (config.hosts &&
(typeof config.hosts.jirecon != "undefined"))?
@@ -374,6 +379,10 @@ export default {
if(this.isLocalId(id) && localAudio.isMuted()) {
lvl = 0;
}
+
+ if(config.debug)
+ this.audioLevelsMap[id] = lvl;
+
APP.UI.setAudioLevel(id, lvl);
});