auto stop screen capture

This commit is contained in:
ian ramzy 2020-03-30 00:25:07 -04:00
parent 524c4602ef
commit 2033a6769c
1 changed files with 3 additions and 0 deletions

View File

@ -381,6 +381,9 @@ function swap() {
switchStreamHelper(stream);
});
} else {
VideoChat.localVideo.srcObject.getTracks().forEach(track => track.stop());
navigator.mediaDevices.getUserMedia({
video: true,
audio: true