This commit is contained in:
yumoqing 2024-08-21 14:29:16 +08:00
parent 34de714364
commit 423aa607ba

View File

@ -156,12 +156,12 @@ bricks.RTCClient = class extends bricks.VBox {
to:this.peer_info
}));
}
send_candidate(event){
send_candidate(peer_info, event){
console.log('send_candidate(), event=', event);
if (event.candidate) {
this.socket.send(JSON.stringify({
type: 'iceCandidate',
to:this.peer_info,
to:peer_info,
candidate: event.candidate
}));
}