Просмотр исходного кода

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 месяцев назад
Родитель
Сommit
b06262d4a3
1 измененных файлов: 3 добавлений и 3 удалений
  1. 3
    3
      JitsiConference.js

+ 3
- 3
JitsiConference.js Просмотреть файл

@@ -1124,8 +1124,8 @@ JitsiConference.prototype.addTrack = function(track) {
1124 1124
 
1125 1125
         // Currently, only adding multiple video streams of different video types is supported.
1126 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 1129
             const sourceName = getSourceNameForJitsiTrack(
1130 1130
                 this.myUserId(),
1131 1131
                 mediaType,
@@ -1140,7 +1140,7 @@ JitsiConference.prototype.addTrack = function(track) {
1140 1140
             return Promise.all(addTrackPromises)
1141 1141
                 .then(() => {
1142 1142
                     this._setupNewTrack(track);
1143
-                    this._sendBridgeVideoTypeMessage(track);
1143
+                    mediaType === MediaType.VIDEO && this._sendBridgeVideoTypeMessage(track);
1144 1144
                     this._updateRoomPresence(this.getActiveMediaSession());
1145 1145
 
1146 1146
                     if (this.isMutedByFocus || this.isVideoMutedByFocus) {

Загрузка…
Отмена
Сохранить