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