Skip to content

Commit

Permalink
feat(JitsiConference) Allow adding multiple tracks to the conference.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jallamsetty1 committed Feb 6, 2025
1 parent efbc00c commit b06262d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions JitsiConference.js
Original file line number Diff line number Diff line change
Expand Up @@ -1124,8 +1124,8 @@ JitsiConference.prototype.addTrack = function(track) {

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

if (this.isMutedByFocus || this.isVideoMutedByFocus) {
Expand Down

0 comments on commit b06262d

Please sign in to comment.