Skip to content

Commit b06262d

Browse files
committed
feat(JitsiConference) Allow adding multiple tracks to the conference.
This should be supported by the backend. This limitation was added here only because of track synchronization issues between JM and LJM. The support is added behind testing.allowMultipleTracks config.js setting Fixes #2205
1 parent efbc00c commit b06262d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

JitsiConference.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1124,8 +1124,8 @@ JitsiConference.prototype.addTrack = function(track) {
11241124

11251125
// Currently, only adding multiple video streams of different video types is supported.
11261126
// TODO - remove this limitation once issues with jitsi-meet trying to add multiple camera streams is fixed.
1127-
if (mediaType === MediaType.VIDEO
1128-
&& !localTracks.find(t => t.getVideoType() === track.getVideoType())) {
1127+
if (this.options.config.testing?.allowMultipleTracks
1128+
|| (mediaType === MediaType.VIDEO && !localTracks.find(t => t.getVideoType() === track.getVideoType()))) {
11291129
const sourceName = getSourceNameForJitsiTrack(
11301130
this.myUserId(),
11311131
mediaType,
@@ -1140,7 +1140,7 @@ JitsiConference.prototype.addTrack = function(track) {
11401140
return Promise.all(addTrackPromises)
11411141
.then(() => {
11421142
this._setupNewTrack(track);
1143-
this._sendBridgeVideoTypeMessage(track);
1143+
mediaType === MediaType.VIDEO && this._sendBridgeVideoTypeMessage(track);
11441144
this._updateRoomPresence(this.getActiveMediaSession());
11451145

11461146
if (this.isMutedByFocus || this.isVideoMutedByFocus) {

0 commit comments

Comments
 (0)