Browse Source

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 https://github.com/jitsi/lib-jitsi-meet/issues/2205
release-8443
Jaya Allamsetty 10 months ago
parent
commit
b06262d4a3
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      JitsiConference.js

+ 3
- 3
JitsiConference.js View File

1124
 
1124
 
1125
         // Currently, only adding multiple video streams of different video types is supported.
1125
         // Currently, only adding multiple video streams of different video types is supported.
1126
         // TODO - remove this limitation once issues with jitsi-meet trying to add multiple camera streams is fixed.
1126
         // 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()))) {
1129
             const sourceName = getSourceNameForJitsiTrack(
1129
             const sourceName = getSourceNameForJitsiTrack(
1130
                 this.myUserId(),
1130
                 this.myUserId(),
1131
                 mediaType,
1131
                 mediaType,
1140
             return Promise.all(addTrackPromises)
1140
             return Promise.all(addTrackPromises)
1141
                 .then(() => {
1141
                 .then(() => {
1142
                     this._setupNewTrack(track);
1142
                     this._setupNewTrack(track);
1143
-                    this._sendBridgeVideoTypeMessage(track);
1143
+                    mediaType === MediaType.VIDEO && this._sendBridgeVideoTypeMessage(track);
1144
                     this._updateRoomPresence(this.getActiveMediaSession());
1144
                     this._updateRoomPresence(this.getActiveMediaSession());
1145
 
1145
 
1146
                     if (this.isMutedByFocus || this.isVideoMutedByFocus) {
1146
                     if (this.isMutedByFocus || this.isVideoMutedByFocus) {

Loading…
Cancel
Save