Browse Source

fix(rn) release audioVideo stream after creating new MediaStream

The old stream needs to be released while keeping the tracks intact
dev1
tmoldovan8x8 5 years ago
parent
commit
54f60e0cd7
No account linked to committer's email address
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      modules/RTC/RTCUtils.js

+ 2
- 0
modules/RTC/RTCUtils.js View File

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

Loading…
Cancel
Save