From 5c84d562858525c877ce0ee0b156bf7c56eb317b Mon Sep 17 00:00:00 2001 From: Jaya Allamsetty Date: Tue, 11 Feb 2025 11:57:56 -0500 Subject: [PATCH] fix(JingleSession) Allow addition of multiple tracks --- modules/xmpp/JingleSessionPC.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/xmpp/JingleSessionPC.js b/modules/xmpp/JingleSessionPC.js index 028e84ddbc..6b60d5e4d0 100644 --- a/modules/xmpp/JingleSessionPC.js +++ b/modules/xmpp/JingleSessionPC.js @@ -1105,10 +1105,6 @@ export default class JingleSessionPC extends JingleSession { Promise.reject(new Error('No tracks passed')); } - if (localTracks.find(track => track.getType() !== MediaType.VIDEO)) { - return Promise.reject(new Error('Multiple tracks of the given media type are not supported')); - } - const replaceTracks = []; const workFunction = finishedCallback => { const remoteSdp = new SDP(this.peerconnection.remoteDescription.sdp, this.isP2P);