소스 검색

fix(multi-stream) Block addition of multiple video streams of the same videoType.

This fixes an issue where mute camera operation doesn't stop sending camera stream even though locally it appears to the user that they are muted. This happens when multiple camera streams are added to peerconnection because of how toggle of the video button is implemented. This limitation will be removed when the application is fixed.
dev1
Jaya Allamsetty 3 년 전
부모
커밋
3fc032652d
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5
    1
      JitsiConference.js

+ 5
- 1
JitsiConference.js 파일 보기

1127
             return Promise.resolve(track);
1127
             return Promise.resolve(track);
1128
         }
1128
         }
1129
 
1129
 
1130
-        if (FeatureFlags.isMultiStreamSupportEnabled() && mediaType === MediaType.VIDEO) {
1130
+        // Currently, only adding multiple video streams of different video types is supported.
1131
+        // TODO - remove this limitation once issues with jitsi-meet trying to add multiple camera streams is fixed.
1132
+        if (FeatureFlags.isMultiStreamSupportEnabled()
1133
+            && mediaType === MediaType.VIDEO
1134
+            && !localTracks.find(t => t.getVideoType() === track.getVideoType())) {
1131
             const sourceName = getSourceNameForJitsiTrack(
1135
             const sourceName = getSourceNameForJitsiTrack(
1132
                 this.myUserId(),
1136
                 this.myUserId(),
1133
                 mediaType,
1137
                 mediaType,

Loading…
취소
저장