소스 검색

fix(rn) release audioVideo stream after creating new MediaStream

The old stream needs to be released while keeping the tracks intact
dev1
tmoldovan8x8 5 년 전
부모
커밋
54f60e0cd7
No account linked to committer's email address
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2
    0
      modules/RTC/RTCUtils.js

+ 2
- 0
modules/RTC/RTCUtils.js 파일 보기

@@ -709,6 +709,8 @@ function handleLocalStream(streams, resolution) {
709 709
                     videoStream.addTrack(videoTracks[j]);
710 710
                 }
711 711
             }
712
+
713
+            audioVideo.release && audioVideo.release(false);
712 714
         } else {
713 715
             // On other types of browser (e.g. Firefox) we choose (namely,
714 716
             // obtainAudioAndVideoPermissions) to call getUserMedia per device

Loading…
취소
저장