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
Removes unused parameters, adds documentation.
Boris Grozevff2b7ca9215a
diff --git a/modules/xmpp/JingleSessionPC.js b/modules/xmpp/JingleSessionPC.jsindex d316050e7e..2fa407649f 100644--- a/modules/xmpp/JingleSessionPC.js+++ b/modules/xmpp/JingleSessionPC.js@@ -858,7 +858,11 @@ JingleSessionPC.prototype.sendTerminate = function (reason, text) {}};-JingleSessionPC.prototype.addSource = function (elem, fromJid) {+/**+ * Handles a Jingle source-add message for this Jingle session.+ * @param elem An array of Jingle "content" elements.+ */+JingleSessionPC.prototype.addSource = function (elem) {var self = this;// FIXME: dirty waiting@@ -866,7 +870,7 @@ JingleSessionPC.prototype.addSource = function (elem, fromJid) {console.warn("addSource - localDescription not ready yet");setTimeout(function(){- self.addSource(elem, fromJid);+ self.addSource(elem);},200);@@ -939,14 +943,18 @@ JingleSessionPC.prototype.addSource = function (elem, fromJid) {});};-JingleSessionPC.prototype.removeSource = function (elem, fromJid) {+/**+ * Handles a Jingle source-remove message for this Jingle session.+ * @param elem An array of Jingle "content" elements.+ */+JingleSessionPC.prototype.removeSource = function (elem) {var self = this;// FIXME: dirty waitingif (!this.peerconnection.localDescription) {console.warn("removeSource - localDescription not ready yet");setTimeout(function() {- self.removeSource(elem, fromJid);+ self.removeSource(elem);},200);diff --git a/modules/xmpp/strophe.jingle.js b/modules/xmpp/strophe.jingle.jsindex 4b943e6c12..7fc87128e8 100644--- a/modules/xmpp/strophe.jingle.js+++ b/modules/xmpp/strophe.jingle.js@@ -174,11 +174,11 @@ module.exports = function(XMPP, eventEmitter) {break;case 'addsource': // FIXME: proprietary, un-jingleishcase 'source-add': // FIXME: proprietary- sess.addSource($(iq).find('>jingle>content'), fromJid);+ sess.addSource($(iq).find('>jingle>content'));break;case 'removesource': // FIXME: proprietary, un-jingleishcase 'source-remove': // FIXME: proprietary- sess.removeSource($(iq).find('>jingle>content'), fromJid);+ sess.removeSource($(iq).find('>jingle>content'));break;default:console.warn('jingle action not implemented', action);