Skip to content

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

Doesn't fail when removeStream is called on FF.

George Politis9d50084b985f
diff --git a/libs/app.bundle.js b/libs/app.bundle.js
index 0bf09a8c91..cf33e43048 100644
--- a/libs/app.bundle.js
+++ b/libs/app.bundle.js
@@ -14483,7 +14483,12 @@ TraceablePeerConnection.prototype.removeStream = function (stream, stopStreams)
track.stop();
});
}
- this.peerconnection.removeStream(stream);
+
+ try {
+ this.peerconnection.removeStream(stream);
+ } catch (e) {
+ console.error(e);
+ }
};
TraceablePeerConnection.prototype.createDataChannel = function (label, opts) {
diff --git a/modules/xmpp/TraceablePeerConnection.js b/modules/xmpp/TraceablePeerConnection.js
index c0cd4a3c84..47a33113e9 100644
--- a/modules/xmpp/TraceablePeerConnection.js
+++ b/modules/xmpp/TraceablePeerConnection.js
@@ -161,7 +161,13 @@ TraceablePeerConnection.prototype.removeStream = function (stream, stopStreams)
track.stop();
});
}
- this.peerconnection.removeStream(stream);
+
+ try {
+ // FF doesn't support this yet.
+ this.peerconnection.removeStream(stream);
+ } catch (e) {
+ console.error(e);
+ }
};
TraceablePeerConnection.prototype.createDataChannel = function (label, opts) {