bugfix
This commit is contained in:
parent
4ec9d19adb
commit
fb813d279c
@ -196,6 +196,16 @@ bricks.RTCClient = class extends bricks.VBox {
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
this.peer_info = null;
|
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());
|
this.localVideo.get_stream().getTracks().forEach(track => track.stop());
|
||||||
}
|
}
|
||||||
call_rejected(peer_info){
|
call_rejected(peer_info){
|
||||||
|
Loading…
Reference in New Issue
Block a user