mirror of
https://github.com/ianramzy/decentralized-video-chat.git
synced 2024-11-14 14:19:20 +08:00
auto stop screen capture
This commit is contained in:
parent
524c4602ef
commit
2033a6769c
@ -381,6 +381,9 @@ function swap() {
|
||||
switchStreamHelper(stream);
|
||||
});
|
||||
} else {
|
||||
|
||||
VideoChat.localVideo.srcObject.getTracks().forEach(track => track.stop());
|
||||
|
||||
navigator.mediaDevices.getUserMedia({
|
||||
video: true,
|
||||
audio: true
|
||||
|
Loading…
Reference in New Issue
Block a user