This commit is contained in:
yumoqing 2024-08-21 14:58:19 +08:00
parent 4ec9d19adb
commit fb813d279c

View File

@ -196,6 +196,16 @@ bricks.RTCClient = class extends bricks.VBox {
}));
}
this.peer_info = null;
if (this.pc.getLocalStreams().length > 0) {
for (let stream of this.pc.getLocalStreams()) {
if (stream.getTracks) {
for (let track of stream.getTracks()) {
track.stop();
}
}
}
}
this.localVideo.get_stream().getTracks().forEach(track => track.stop());
}
call_rejected(peer_info){