Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Improves simulcast logging.
George Politisfeffcd18de22
diff --git a/simulcast.js b/simulcast.jsindex e3143c9979..583c11fa91 100644--- a/simulcast.js+++ b/simulcast.js@@ -6,7 +6,7 @@* @constructor*/function SimulcastUtils() {- this.logger = new SimulcastLogger("SimulcastUtils");+ this.logger = new SimulcastLogger("SimulcastUtils", 1);}/**@@ -226,7 +226,7 @@ SimulcastUtils.prototype._compileVideoSources = function (videoSources) {function SimulcastReceiver() {this.simulcastUtils = new SimulcastUtils();- this.logger = new SimulcastLogger('SimulcastReceiver');+ this.logger = new SimulcastLogger('SimulcastReceiver', 1);}SimulcastReceiver.prototype._remoteVideoSourceCache = '';@@ -487,7 +487,7 @@ SimulcastReceiver.prototype.getRemoteVideoStreamIdBySSRC = function (ssrc) {function SimulcastSender() {this.simulcastUtils = new SimulcastUtils();- this.logger = new SimulcastLogger('SimulcastSender');+ this.logger = new SimulcastLogger('SimulcastSender', 1);}SimulcastSender.prototype._localVideoSourceCache = '';@@ -1198,20 +1198,27 @@ SimulcastManager.prototype._setLocalVideoStreamEnabled = function(ssrc, enabled)** @constructor*/-function SimulcastLogger(name) {+function SimulcastLogger(name, lvl) {this.name = name;+ this.lvl = lvl;}SimulcastLogger.prototype.log = function (text) {+ if (this.lvl) {console.log(text);+ }};SimulcastLogger.prototype.info = function (text) {+ if (this.lvl > 1) {console.info(text);+ }};SimulcastLogger.prototype.fine = function (text) {+ if (this.lvl > 2) {console.log(text);+ }};SimulcastLogger.prototype.error = function (text) {