This commit is contained in:
yumoqing 2024-08-20 14:38:31 +08:00
parent 9053643c15
commit 98c4f1c725

View File

@ -244,9 +244,8 @@ bricks.RTCClient = class extends bricks.VBox {
.get_stream()
.getTracks()
.forEach(track => {
this.peerConnection.addTrack(track,
this.localVideo.stream);
}
this.peerConnection.addTrack(track, this.localVideo.stream);
});
// 处理 ICE 候选
this.peerConnection.onicecandidate = this.send_candidate.bind(this, to_info);