diff --git a/bricks/rtc.js b/bricks/rtc.js index f9303b6..7d0c482 100644 --- a/bricks/rtc.js +++ b/bricks/rtc.js @@ -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 })); }