Adds helpers to access audio levels from torture.
This commit is contained in:
parent
09d08b034c
commit
482f71f5ea
|
@ -244,6 +244,14 @@ export default {
|
||||||
return this._room
|
return this._room
|
||||||
&& this._room.myUserId();
|
&& 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
|
* Will check for number of remote particiapnts that have at least one
|
||||||
* remote track.
|
* remote track.
|
||||||
|
@ -292,10 +300,7 @@ export default {
|
||||||
this._setupListeners();
|
this._setupListeners();
|
||||||
},
|
},
|
||||||
_getConferenceOptions() {
|
_getConferenceOptions() {
|
||||||
let options = {
|
let options = config;
|
||||||
openSctp: config.openSctp,
|
|
||||||
disableAudioLevels: config.disableAudioLevels
|
|
||||||
};
|
|
||||||
if(config.enableRecording) {
|
if(config.enableRecording) {
|
||||||
options.recordingType = (config.hosts &&
|
options.recordingType = (config.hosts &&
|
||||||
(typeof config.hosts.jirecon != "undefined"))?
|
(typeof config.hosts.jirecon != "undefined"))?
|
||||||
|
@ -374,6 +379,10 @@ export default {
|
||||||
if(this.isLocalId(id) && localAudio.isMuted()) {
|
if(this.isLocalId(id) && localAudio.isMuted()) {
|
||||||
lvl = 0;
|
lvl = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(config.debug)
|
||||||
|
this.audioLevelsMap[id] = lvl;
|
||||||
|
|
||||||
APP.UI.setAudioLevel(id, lvl);
|
APP.UI.setAudioLevel(id, lvl);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue