浏览代码

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 个月前
父节点
当前提交
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) {

正在加载...
取消
保存