mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-24 18:08:50 +00:00
Release user media
This commit is contained in:
parent
67e38faac9
commit
c4e81d1ded
@ -330,6 +330,11 @@ class CallWindow extends CustomEvents {
|
||||
delete this.mainPeer;
|
||||
}
|
||||
|
||||
// Release user media
|
||||
if(this.mainStream) {
|
||||
this.mainStream.getTracks().forEach(e => e.stop())
|
||||
}
|
||||
|
||||
// Destroy peer connections
|
||||
for(const el of this.peersEls)
|
||||
el[1].destroy()
|
||||
@ -501,6 +506,7 @@ class CallWindow extends CustomEvents {
|
||||
videoEl.play()
|
||||
|
||||
this.videoEls.set(peerID, videoEl)
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user