|
|
@@ -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) {
|