This commit is contained in:
yumoqing 2024-10-12 18:14:02 +08:00
parent 9df6b3c33d
commit d923b973d2

View File

@ -460,8 +460,8 @@ bricks.RTCP2PConnect = class {
dc.close();
}
pc.close();
delete self.peers[peer.id];
var keys = Object.keys(self.peers);
delete this.peers[peer.id];
var keys = Object.keys(this.peers);
if (keys.length == 0){
this.localVideo.get_stream()
.getTracks().forEach(track => track.stop());